Function at 0x487c20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x50]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
cmp ebp, ebx
je 0x488c76
cmp dword [ebp + 0x12b8], 0xc0dedbad
jne 0x488c76
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x58], edi
cmp dword [ebp + 8], edi
jne 0x487c71
mov eax, dword [ebp + 0x24]
cmp eax, 2
jle 0x487c71
cmp eax, 0xe
jl 0x488c4a
mov esi, dword [esp + 0x44]
push 1
mov ecx, esi
call fcn.00486350
add esp, 4
test eax, eax
je 0x487c8c
mov eax, esi
call fcn.00487750
mov ecx, dword [ebp + 8]
cmp ecx, edi
je 0x487eed
mov eax, dword [ebp + 0x24]
cmp eax, 2
jle 0x487ca6
cmp eax, 0xf
jge 0x487ca6
mov dword [ecx], ebp
cmp dword [ebp + 8], edi
je 0x487eed
mov eax, dword [ebp + 0x24]
cmp eax, 2
jl 0x487eed
cmp eax, 0xf
jge 0x487eed
xor ecx, ecx
cmp eax, 8
setle cl
lea edx, [esp + 0x48]
push ecx
push edx
push ebp
call fcn.0048d7b0
add esp, 0xc
cmp edx, edi
jg 0x487eed
jl 0x487ced
cmp eax, edi
jae 0x487eed
mov eax, dword [ebp + 0x24]
cmp eax, 3
jne 0x487d57
mov ecx, dword [ebp + 0xce0]
mov edx, dword [ebp + 0xce4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xce8]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0xcec]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x5c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00491da0
push edx
push eax
push str.Resolving_timed_out_after__I64d_milliseconds
push ebp
call fcn.00489340
add esp, 0x30
jmp 0x487eb9
cmp eax, 4
jne 0x487dbe
mov ecx, dword [ebp + 0xce0]
mov edx, dword [ebp + 0xce4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xce8]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0xcec]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x5c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00491da0
push edx
push eax
push str.Connection_timed_out_after__I64d_milliseconds
push ebp
call fcn.00489340
add esp, 0x30
jmp 0x487eb9
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0x8c]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x487e4b
mov edx, dword [ebp + 0xce0]
push ecx
mov ecx, dword [ebp + 0x98]
push eax
mov eax, dword [ebp + 0x9c]
push eax
push ecx
mov ecx, dword [ebp + 0xce4]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp + 0xce8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0xcec]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x6c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x80]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.00491da0
add esp, 0x20
push edx
push eax
push str.Operation_timed_out_after__I64d_milliseconds_with__I64d_out_of__I64d_bytes_received
push ebp
call fcn.00489340
add esp, 0x20
jmp 0x487eb9
mov edx, dword [ebp + 0x9c]
mov eax, dword [ebp + 0x98]
mov ecx, dword [ebp + 0xce0]
push edx
mov edx, dword [ebp + 0xce4]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xce8]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0xcec]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x64]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00491da0
add esp, 0x20
push edx
push eax
push str.Operation_timed_out_after__I64d_milliseconds_with__I64d_bytes_received
push ebp
call fcn.00489340
add esp, 0x18
cmp dword [ebp + 0x24], 8
jle 0x487ed5
mov eax, dword [ebp + 8]
push 2
push eax
call fcn.0048e600
add esp, 8
mov dword [esp + 0x10], 1
mov ebx, 0x1c
push 1
mov ecx, ebx
mov edx, ebp
call fcn.004877a0
add esp, 4
jmp case.0x487ef9.1
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
ja case.default.0x487ef9
jmp dword [eax*4 + 0x488c84]
push ebp
call fcn.004b1bc0
mov ebx, eax
add esp, 4
cmp ebx, edi
jne case.0x487ef9.1
mov eax, 2
mov ecx, ebp
call fcn.004871b0
push 1
push ebp
call fcn.00496c20
add esp, 8
mov dword [esp + 0x58], 0xffffffff
jmp case.0x487ef9.1
push 2
push ebp
call fcn.00496c20
mov eax, dword [ebp + 0x658]
add esp, 8
cmp eax, edi
je 0x487f5a
cdq
push 9
push edx
push eax
push ebp
call fcn.00486eb0
add esp, 0x10
mov eax, dword [ebp + 0x65c]
cmp eax, edi
je 0x487f72
cdq
push 2
push edx
push eax
push ebp
call fcn.00486eb0
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
push ebp
call fcn.00485df0
mov ebx, eax
add esp, 0xc
cmp ebx, 0x59
jne 0x487fb2
lea eax, [ebx - 0x58]
mov ecx, ebp
call fcn.004871b0
mov ecx, dword [esi + 0x28]
lea eax, [ebp + 0xc]
push eax
push ebp
push ecx
add esi, 0x24
push esi
call fcn.004ae4e0
add esp, 0x10
xor ebx, ebx
jmp case.0x487ef9.1
cmp dword [ebp + 0x11b4], edi
je 0x487fd0
push str.Transfer_was_pending__now_try_another_n
push ebp
call fcn.00489260
mov eax, dword [ebp + 0x78]
add esp, 8
call fcn.00487750
cmp ebx, edi
jne case.0x487ef9.1
cmp dword [esp + 0x2c], edi
je 0x487fe8
mov eax, 3
jmp 0x488b24
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x14], edi
je 0x488000
mov eax, 8
jmp 0x488b24
mov edx, dword [ebp + 8]
push edx
call fcn.004b2410
add esp, 4
mov ecx, ebp
test eax, eax
je 0x48801c
mov eax, 5
jmp 0x488b26
mov eax, 4
jmp 0x488b26
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], edi
cmp dword [esi + 0x544], edi
je 0x48803d
mov edi, dword [esi + 0x34c]
jmp 0x488053
cmp dword [esi + 0x538], edi
je 0x48804d
mov edi, dword [esi + 0x31c]
jmp 0x488053
mov edi, dword [esi + 0x304]
mov eax, dword [esi + 0x364]
push eax
push edi
push esi
call fcn.004af480
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x488093
push edi
push 0x5aec6c
push ebp
mov dword [esi + 0x66c], eax
mov dword [esi + 0x678], 1
xor ebx, ebx
call fcn.00489260
add esp, 0xc
cmp dword [esp + 0x18], ebx
jne 0x4880a6
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.004afbc0
add esp, 8
mov ebx, eax
mov eax, dword [esp + 0x44]
push ebp
push eax
call fcn.00486570
add esp, 8
cmp dword [esp + 0x18], 0
je 0x488112
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.004afc10
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4880db
mov dword [ebp + 8], 0
jmp 0x488112
cmp dword [esp + 0x14], 0
mov dword [esp + 0x58], 0xffffffff
je 0x4880f1
mov eax, 8
jmp 0x48810b
mov eax, dword [ebp + 8]
push eax
call fcn.004b2410
add esp, 4
test eax, eax
mov eax, 5
jne 0x48810b
mov eax, 4
mov ecx, ebp
call fcn.004871b0
test ebx, ebx
je case.0x487ef9.1
mov dword [esp + 0x10], 1
jmp case.0x487ef9.1
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.004ac770
mov ebx, eax
mov eax, dword [ebp + 8]
add esp, 8
cmp dword [eax + 0x588], edi
je 0x488164
push edi
xor ecx, ecx
mov edx, ebp
mov dword [esp + 0x5c], 0xffffffff
xor ebx, ebx
call fcn.004877a0
add esp, 4
lea eax, [ebx + 2]
jmp 0x488b24
cmp ebx, edi
jne 0x48811a
cmp dword [eax + 0x358], 2
jne 0x48817d
cmp dword [eax + 0x51c], edi
je case.0x487ef9.1
push eax
call fcn.004b23f0
add esp, 4
test eax, eax
je case.0x487ef9.1
mov dword [esp + 0x58], 0xffffffff
mov eax, 6
jmp 0x488b24
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x30]
push eax
push edi
push ecx
call fcn.0048ec40
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x30], edi
je 0x488206
cmp ebx, edi
jne 0x48820e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x358], 2
jne 0x4881d2
cmp dword [eax + 0x51c], edi
je 0x4881df
push eax
call fcn.004b2410
add esp, 4
test eax, eax
je 0x4881e9
mov eax, 5
jmp 0x488b24
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x568]
neg eax
sbb eax, eax
mov dword [esp + 0x58], 0xffffffff
add eax, 6
jmp 0x488b24
cmp ebx, edi
je case.0x487ef9.1
push ebp
call fcn.00524c10
push 1
mov ecx, ebx
mov edx, ebp
call fcn.004877a0
add esp, 8
mov dword [esp + 0x10], 1
jmp case.0x487ef9.1
mov esi, dword [ebp + 8]
lea ebx, [esp + 0x14]
call fcn.00486460
mov ebx, eax
cmp ebx, edi
jne 0x48820e
mov ecx, ebp
cmp dword [esp + 0x14], edi
jne 0x488253
mov eax, 7
jmp 0x488b26
mov eax, 8
call fcn.004871b0
mov dword [esp + 0x58], 0xffffffff
jmp case.0x487ef9.1
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x14]
call fcn.00486400
mov ebx, eax
cmp ebx, edi
jne 0x48820e
cmp dword [esp + 0x14], edi
je case.0x487ef9.1
mov eax, 8
mov ecx, ebp
call fcn.004871b0
mov dword [esp + 0x58], 0xffffffff
jmp case.0x487ef9.1
cmp dword [ebp + 0xbd8], edi
je 0x4882cf
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.0048e600
add esp, 8
mov eax, 0xe
mov ecx, ebp
call fcn.004871b0
xor ebx, ebx
mov dword [esp + 0x58], 0xffffffff
jmp case.0x487ef9.1
lea ebx, [esp + 0x1c]
mov ecx, ebp
call fcn.00486390
mov ebx, eax
cmp ebx, edi
jne 0x488374
cmp dword [esp + 0x1c], edi
jne 0x48833d
cmp dword [ebp + 0x1198], edi
je 0x488328
mov eax, dword [ebp + 0x11c0]
cmp eax, 7
je 0x488302
cmp eax, 5
jne 0x488328
push edi
xor ecx, ecx
mov edx, ebp
call fcn.004877a0
add esp, 4
mov eax, 0xe
mov ecx, ebp
call fcn.004871b0
mov dword [esp + 0x58], 0xffffffff
jmp case.0x487ef9.1
mov eax, 9
mov ecx, ebp
call fcn.004871b0
mov dword [esp + 0x58], edi
jmp case.0x487ef9.1
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x55c], edi
mov ecx, ebp
je 0x48835d
mov eax, 0xa
call fcn.004871b0
mov dword [esp + 0x58], edi
jmp case.0x487ef9.1
mov eax, 0xb
call fcn.004871b0
mov dword [esp + 0x58], 0xffffffff
jmp case.0x487ef9.1
cmp ebx, 0x37
jne 0x488439
mov eax, dword [ebp + 8]
cmp dword [eax + 0x530], edi
je 0x488439
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], edi
call fcn.004b2090
add esp, 8
cmp eax, edi
je 0x4883ac
mov ebx, eax
mov dword [esp + 0x10], 1
push ebp
call fcn.00524c10
push edi
mov ecx, ebx
mov edx, ebp
call fcn.004877a0
mov ecx, dword [esp + 0x20]
add esp, 8
cmp ecx, edi
je 0x48841e
cmp eax, edi
je 0x4883e5
cmp eax, 0x37
je 0x4883e5
mov ebx, eax
mov eax, dword [esp + 0x18]
push eax
call dword [0x618914]
add esp, 4
jmp case.0x487ef9.1
push 2
push ecx
push ebp
call fcn.004b1dc0
add esp, 0xc
cmp eax, edi
jne 0x4883d0
mov eax, 2
mov ecx, ebp
call fcn.004871b0
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x5c], 0xffffffff
xor ebx, ebx
call dword [0x618914]
add esp, 4
jmp case.0x487ef9.1
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x14], 1
call dword [0x618914]
add esp, 4
jmp case.0x487ef9.1
push ebp
call fcn.00524c10
add esp, 4
cmp dword [ebp + 8], edi
je 0x488454
push edi
mov ecx, ebx
mov edx, ebp
call fcn.004877a0
add esp, 4
mov dword [esp + 0x10], 1
jmp case.0x487ef9.1
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x1c]
call fcn.00486430
mov ebx, eax
cmp ebx, edi
jne 0x4884a1
cmp dword [esp + 0x1c], edi
je case.0x487ef9.1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x55c]
neg eax
sbb eax, eax
add eax, 0xb
mov ecx, ebp
call fcn.004871b0
mov dword [esp + 0x58], 0xffffffff
jmp case.0x487ef9.1
push ebp
call fcn.00524c10
push edi
jmp 0x488216
mov edi, dword [ebp + 8]
lea ebx, [esp + 0x34]
call fcn.004863d0
mov ebx, eax
test ebx, ebx
jne 0x4884f6
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4884e9
xor edx, edx
cmp eax, 1
sete dl
mov ecx, ebp
lea edx, [edx + edx + 9]
mov eax, edx
call fcn.004871b0
mov dword [esp + 0x58], 0xffffffff
jmp case.0x487ef9.1
mov dword [esp + 0x58], 0
jmp case.0x487ef9.1
push ebp
call fcn.00524c10
push 0
jmp 0x488216
mov eax, dword [ebp + 8]
cmp dword [eax + 0x594], edi
je 0x488515
mov eax, esi
call fcn.00487750
mov eax, dword [ebp + 8]
or esi, 0xffffffff
cmp dword [eax + 0x5ec], esi
jne 0x488561
cmp dword [eax + 0x5f0], esi
jne 0x488561
cmp dword [ebp + 0x1198], edi
je 0x48854c
mov ecx, dword [eax + 0x5c8]
test dword [ecx + 0x44], 0x1000
jne 0x48854c
mov dword [ebp + 0x11c0], 7
mov eax, 0xe
mov ecx, ebp
call fcn.004871b0
mov dword [esp + 0x58], esi
jmp case.0x487ef9.1
mov eax, 0xc
mov ecx, ebp
call fcn.004871b0
mov dword [esp + 0x58], esi
jmp case.0x487ef9.1
mov edx, dword [ebp + 8]
push edx
call fcn.00497950
add esp, 4
test eax, eax
je 0x488590
mov ebx, 0x2a
jmp case.0x487ef9.1
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 8], ecx
push ebp
mov dword [eax + 0xc], edx
call fcn.004aff70
mov ebx, eax
add esp, 0x14
cmp ebx, edi
jne case.0x487ef9.1
mov ecx, dword [ebp + 0x68c]
mov edx, dword [ebp + 0x688]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x3c], edi
jl 0x488657
jg 0x4885e3
cmp edx, edi
jbe 0x488657
mov esi, dword [esp + 0x48]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x5c]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x60]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x64]
mov dword [eax + 0xc], esi
mov esi, dword [ebp + 0xd10]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp + 0xd14]
mov dword [eax + 4], esi
mov esi, dword [ebp + 0xd18]
mov dword [eax + 8], esi
mov esi, dword [ebp + 0xd1c]
push ecx
mov ecx, dword [ebp + 0xd20]
push edx
mov edx, dword [ebp + 0xc74]
mov dword [eax + 0xc], esi
mov eax, dword [ebp + 0xd24]
push eax
mov eax, dword [ebp + 0xc70]
push ecx
push edx
push eax
call fcn.00496e20
add esp, 0x38
mov edi, eax
mov dword [esp + 0x3c], edx
mov ecx, dword [ebp + 0x694]
mov esi, dword [ebp + 0x690]
xor eax, eax
xor edx, edx
test ecx, ecx
jl 0x4886df
jg 0x488671
test esi, esi
jbe 0x4886df
mov edx, dword [esp + 0x48]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 0xc], edx
mov edx, dword [ebp + 0xd28]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp + 0xd2c]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0xd30]
mov dword [eax + 8], edx
mov edx, dword [ebp + 0xd34]
push ecx
mov ecx, dword [ebp + 0xd38]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0xd3c]
mov edx, dword [ebp + 0xc6c]
push esi
push eax
mov eax, dword [ebp + 0xc68]
push ecx
push edx
push eax
call fcn.00496e20
add esp, 0x38
mov ecx, dword [esp + 0x3c]
mov esi, edi
or esi, ecx
jne 0x488727
mov esi, eax
or esi, edx
jne 0x488727
lea eax, [esi + 0xc]
mov ecx, ebp
call fcn.004871b0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 8], ecx
push ebp
mov dword [eax + 0xc], edx
call fcn.00496f40
add esp, 0x14
jmp case.0x487ef9.1
cmp ecx, edx
jl 0x488743
jg 0x488731
cmp edi, eax
jb 0x488743
push 0xa
push ecx
push edi
push ebp
call fcn.00486eb0
add esp, 0x10
jmp case.0x487ef9.1
push 0xa
push edx
push eax
push ebp
call fcn.00486eb0
add esp, 0x10
jmp case.0x487ef9.1
mov ecx, dword [ebp + 0x68c]
cmp ecx, edi
mov edx, dword [ebp + 0x688]
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
jl 0x4887f9
jg 0x488783
cmp edx, edi
jbe 0x4887f9
mov esi, dword [esp + 0x48]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x5c]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x60]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x64]
mov dword [eax + 0xc], esi
mov esi, dword [ebp + 0xd10]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp + 0xd14]
mov dword [eax + 4], esi
mov esi, dword [ebp + 0xd18]
mov dword [eax + 8], esi
mov esi, dword [ebp + 0xd1c]
push ecx
mov ecx, dword [ebp + 0xd20]
push edx
mov edx, dword [ebp + 0xc74]
mov dword [eax + 0xc], esi
mov eax, dword [ebp + 0xd24]
push eax
mov eax, dword [ebp + 0xc70]
push ecx
push edx
push eax
call fcn.00496e20
add esp, 0x38
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov ecx, dword [ebp + 0x694]
mov edx, dword [ebp + 0x690]
xor edi, edi
xor esi, esi
test ecx, ecx
jl 0x488885
jg 0x488813
test edx, edx
jbe 0x488885
mov esi, dword [esp + 0x48]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x5c]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x60]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x64]
mov dword [eax + 0xc], esi
mov esi, dword [ebp + 0xd28]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp + 0xd2c]
push ecx
mov ecx, dword [ebp + 0xd3c]
mov dword [eax + 4], esi
mov esi, dword [ebp + 0xd30]
push edx
mov edx, dword [ebp + 0xd38]
mov dword [eax + 8], esi
mov esi, dword [ebp + 0xd34]
push ecx
mov ecx, dword [ebp + 0xc68]
mov dword [eax + 0xc], esi
mov eax, dword [ebp + 0xc6c]
push edx
push eax
push ecx
call fcn.00496e20
add esp, 0x38
mov edi, eax
mov esi, edx
mov edx, dword [esp + 0x38]
or edx, dword [esp + 0x3c]
jne 0x488a64
mov eax, edi
or eax, esi
jne 0x488a64
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
push eax
call fcn.004b1720
xor edi, edi
add esp, 0x10
mov ebx, eax
cmp dword [esp + 0x20], edi
jne 0x488908
cmp ebx, 0x38
je 0x488908
cmp ebx, 0x5c
je 0x4888d0
mov esi, dword [esp + 0x24]
cmp ebx, edi
je 0x488940
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c8]
test byte [ecx + 0x44], 2
jne 0x4888ef
cmp ebx, 0x5c
je 0x4888ef
push 2
push eax
call fcn.0048e600
add esp, 8
push ebp
call fcn.00524c10
push 1
mov ecx, ebx
mov edx, ebp
call fcn.004877a0
add esp, 8
jmp case.0x487ef9.1
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.004b2090
add esp, 8
cmp eax, edi
jne 0x488938
xor eax, eax
cmp dword [esp + 0x18], edi
setne al
mov esi, eax
cmp esi, edi
je 0x4888cc
xor ebx, ebx
mov dword [esp + 0x20], 1
jmp 0x48894a
cmp ebx, edi
jne 0x4888d0
mov ebx, eax
jmp 0x4888c8
cmp dword [esp + 0x20], edi
je 0x488a44
push ebp
call fcn.00524c10
add esp, 4
cmp dword [ebp + 0x140], edi
jne 0x4889d0
cmp esi, edi
jne 0x4889f9
cmp dword [ebp + 0x13c], edi
je 0x48830f
mov edx, dword [esp + 0x18]
push edx
call dword [0x618914]
mov eax, dword [ebp + 0x13c]
push 1
push eax
push ebp
mov dword [esp + 0x28], eax
mov dword [ebp + 0x13c], edi
call fcn.004b1dc0
mov ebx, eax
mov eax, dword [esp + 0x28]
push eax
call dword [0x618914]
add esp, 0x14
cmp ebx, edi
je 0x48830f
push 1
mov ecx, ebx
mov edx, ebp
mov dword [esp + 0x14], 1
call fcn.004877a0
mov ebx, eax
add esp, 4
cmp ebx, edi
jne case.0x487ef9.1
jmp 0x48830f
cmp esi, edi
jne 0x4889f9
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x618914]
mov edx, dword [ebp + 0x140]
add esp, 4
mov dword [esp + 0x18], edx
mov dword [ebp + 0x140], edi
mov esi, 3
jmp 0x4889fe
mov esi, 2
push edi
xor ecx, ecx
mov edx, ebp
call fcn.004877a0
mov eax, dword [esp + 0x1c]
push esi
push eax
push ebp
call fcn.004b1dc0
mov ebx, eax
add esp, 0x10
cmp ebx, edi
jne 0x488a31
mov eax, 2
mov ecx, ebp
call fcn.004871b0
mov dword [esp + 0x58], 0xffffffff
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x618914]
add esp, 4
jmp case.0x487ef9.1
cmp dword [esp + 0x28], edi
je case.0x487ef9.1
push 7
push edi
push edi
push ebp
call fcn.00486eb0
add esp, 0x10
mov dword [esp + 0x58], edi
jmp case.0x487ef9.1
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], edx
push ebp
mov dword [eax + 0xc], ecx
call fcn.00496f40
add esp, 0x14
mov eax, 0xd
mov ecx, ebp
call fcn.004871b0
cmp dword [esp + 0x3c], esi
jl 0x488abe
jg 0x488aa7
cmp dword [esp + 0x38], edi
jb 0x488abe
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push 0xa
push edx
push eax
push ebp
call fcn.00486eb0
add esp, 0x10
jmp case.0x487ef9.1
push 0xa
push esi
push edi
push ebp
call fcn.00486eb0
add esp, 0x10
jmp case.0x487ef9.1
mov eax, dword [ebp + 8]
mov dword [esp + 0x58], 0xffffffff
cmp eax, edi
je 0x488b0a
cmp dword [eax + 0x594], edi
je 0x488aeb
mov eax, esi
call fcn.00487750
push edi
mov ecx, ebx
mov edx, ebp
call fcn.004877a0
add esp, 4
cmp ebx, edi
jne 0x488afe
mov ebx, eax
cmp dword [ebp + 8], edi
je 0x488b0a
mov esi, ebp
call fcn.00486150
cmp dword [ebp + 0x1198], edi
je 0x488b1f
cmp dword [ebp + 0x11c0], 7
je 0x488b1f
xor eax, eax
jmp 0x488b24
mov eax, 0xf
mov ecx, ebp
call fcn.004871b0
cmp dword [ebp + 0x24], 0xf
jge 0x488bda
test ebx, ebx
je 0x488b9b
mov eax, dword [esp + 0x44]
call fcn.00487750
mov edi, dword [ebp + 8]
test edi, edi
je 0x488b7b
cmp dword [esp + 0x10], 0
je 0x488b8a
mov esi, ebp
call fcn.00486150
xor ecx, ecx
cmp ebx, 0x1c
sete cl
push ecx
push edi
push ebp
call fcn.00484ca0
add esp, 0xc
mov eax, 0xf
mov ecx, ebp
call fcn.004871b0
or esi, 0xffffffff
jmp 0x488bde
cmp dword [ebp + 0x24], 2
jne 0x488b8a
push ebp
call fcn.00524c10
add esp, 4
mov eax, 0xf
mov ecx, ebp
call fcn.004871b0
or esi, 0xffffffff
jmp 0x488bde
mov eax, dword [ebp + 8]
test eax, eax
je 0x488bda
push eax
call fcn.00497950
add esp, 4
test eax, eax
je 0x488bda
mov edx, dword [ebp + 8]
push 2
push edx
mov ebx, 0x2a
call fcn.0048e600
xor eax, eax
add esp, 8
cmp dword [ebp + 0x24], 0xe
mov ecx, ebp
setge al
add eax, 0xe
call fcn.004871b0
or esi, 0xffffffff
jmp 0x488bde
mov esi, dword [esp + 0x58]
cmp dword [ebp + 0x24], 0xf
jne 0x488c1e
mov eax, dword [ebp + 0xb30]
test eax, eax
je 0x488bf7
push ebx
push ebp
call eax
add esp, 8
jmp 0x488c12
mov ecx, dword [esp + 0x44]
lea eax, [ebp + 0x2c]
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], ebp
mov dword [eax + 0x14], ebx
call fcn.00485fd0
mov esi, eax
mov eax, 0x10
mov ecx, ebp
call fcn.004871b0
cmp esi, 0xffffffff
je 0x487c51
mov ecx, dword [esp + 0x44]
push 0
call fcn.00486350
add esp, 4
test eax, eax
jne 0x487c51
mov dword [ebp + 0x28], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [ebp + 0x24]
push eax
push str.In_state__d_with_no_conn__bail_out__n
push ebp
call fcn.00489340
add esp, 0xc
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov dword [ebp + 0x28], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x30
ret