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

Disassembly:
sub esp, 0x34
push ebx
push ebp
push edi
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
cmp esi, edi
je 0x496825
cmp dword [esi + 0xda8], 0xc0dedbad
jne 0x496825
lea esp, [esp]
xor ebx, ebx
lea ebp, [esi + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
cmp dword [ebp], ebx
jne 0x495743
mov eax, dword [esi + 0x24]
cmp eax, 2
jle 0x495743
cmp eax, 0x10
jl 0x4967fb
mov ecx, dword [esp + 0x44]
push 1
call fcn.00493f00
add esp, 4
test eax, eax
je 0x49575c
mov eax, ecx
call fcn.00495140
mov ecx, dword [ebp]
cmp ecx, ebx
je 0x4959b6
mov eax, dword [esi + 0x24]
cmp eax, 2
jle 0x495776
cmp eax, 0x11
jge 0x495776
mov dword [ecx], esi
cmp dword [ebp], ebx
je 0x4959b6
mov eax, dword [esi + 0x24]
cmp eax, 2
jl 0x4959b6
cmp eax, 0x11
jge 0x4959b6
xor ecx, ecx
cmp eax, 8
setle cl
lea edx, [esp + 0x48]
push ecx
push edx
push esi
call fcn.0049bbf0
add esp, 0xc
cmp edx, ebx
jg 0x4959b6
jl 0x4957bd
cmp eax, ebx
jae 0x4959b6
mov eax, dword [esi + 0x24]
cmp eax, 3
jne 0x495827
mov ecx, dword [esi + 0x818]
mov edx, dword [esi + 0x81c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x820]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x824]
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.0049de40
push edx
push eax
push str.Resolving_timed_out_after__ld_milliseconds
push esi
call fcn.00497270
add esp, 0x30
jmp 0x495983
cmp eax, 4
jne 0x49588e
mov ecx, dword [esi + 0x818]
mov edx, dword [esi + 0x81c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x820]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x824]
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.0049de40
push edx
push eax
push str.Connection_timed_out_after__ld_milliseconds
push esi
call fcn.00497270
add esp, 0x30
jmp 0x495983
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x495915
mov edx, dword [esi + 0x818]
push ecx
mov ecx, dword [esi + 0x90]
push eax
mov eax, dword [esi + 0x94]
push eax
push ecx
mov ecx, dword [esi + 0x81c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esi + 0x820]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x824]
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.0049de40
add esp, 0x20
push edx
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_out_of__I64d_bytes_received
push esi
call fcn.00497270
add esp, 0x20
jmp 0x495983
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x818]
push edx
mov edx, dword [esi + 0x81c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x820]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x824]
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.0049de40
add esp, 0x20
push edx
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_bytes_received
push esi
call fcn.00497270
add esp, 0x18
cmp dword [esi + 0x24], 9
jle 0x49599f
mov eax, dword [ebp]
push 2
push eax
call fcn.0049c790
add esp, 8
mov dword [esp + 0x10], 1
mov edi, 0x1c
push 1
push ebp
mov ecx, edi
call fcn.00495180
add esp, 8
jmp case.0x4959c2.1
mov eax, dword [esi + 0x24]
cmp eax, 0x12
ja case.default.0x4959c2
jmp dword [eax*4 + 0x496834]
push esi
call fcn.004ae1b0
mov edi, eax
add esp, 4
cmp edi, ebx
jne case.0x4959c2.1
mov eax, 2
mov ecx, esi
call fcn.00494cb0
push 1
push esi
call fcn.004a2f00
add esp, 8
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4959c2.1
push 2
push esi
call fcn.004a2f00
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x38]
push edx
push ebp
push esi
call fcn.00493910
mov edi, eax
add esp, 0x18
cmp edi, 0x59
jne 0x495a4d
lea eax, [edi - 0x58]
mov ecx, esi
call fcn.00494cb0
lea eax, [esi + 0xc]
push eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x28]
push esi
push ecx
add eax, 0x24
push eax
call fcn.004a9320
add esp, 0x10
xor edi, edi
jmp case.0x4959c2.1
cmp edi, ebx
jne case.0x4959c2.1
mov edx, dword [ebp]
push edx
push esi
call fcn.004a9990
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x495d30
cmp dword [esp + 0x2c], ebx
je 0x495a7c
mov eax, 3
jmp 0x4966b4
mov dword [esp + 0xc], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x495aa5
mov eax, dword [esp + 0x44]
push 1
push eax
call fcn.00493be0
add esp, 8
neg eax
sbb eax, eax
add eax, 9
jmp 0x4966b4
mov ecx, dword [ebp]
push ecx
call fcn.004ab280
add esp, 4
mov ecx, esi
test eax, eax
je 0x495ac1
mov eax, 5
jmp 0x4966b6
mov eax, 4
jmp 0x4966b6
mov edi, dword [ebp]
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x2b4], ebx
je 0x495ae2
mov ebx, dword [edi + 0xe0]
jmp 0x495af8
cmp dword [edi + 0x2a8], ebx
je 0x495af2
mov ebx, dword [edi + 0xb0]
jmp 0x495af8
mov ebx, dword [edi + 0x9c]
mov edx, dword [edi + 0xf8]
push edx
push ebx
push edi
call fcn.0048e0d0
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x495b38
push ebx
push str.Hostname__s_was_found_in_DNS_cache_n
mov dword [edi + 0x584], eax
mov dword [edi + 0x588], 1
push esi
xor edi, edi
call fcn.004971e0
add esp, 0xc
cmp dword [esp + 0x18], edi
jne 0x495b4b
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0048c510
add esp, 8
mov edi, eax
mov ebx, dword [esp + 0x44]
push esi
push ebx
call fcn.00493ff0
add esp, 8
cmp dword [esp + 0x18], 0
je 0x495bc4
mov eax, dword [ebp]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0049e420
mov edi, eax
add esp, 8
test edi, edi
je 0x495b80
mov dword [ebp], 0
jmp 0x495bc4
cmp dword [esp + 0x14], 0
mov dword [esp + 0xc], 0xffffffff
je 0x495ba3
push 1
push ebx
call fcn.00493be0
add esp, 8
neg eax
sbb eax, eax
add eax, 9
jmp 0x495bbd
mov ecx, dword [ebp]
push ecx
call fcn.004ab280
add esp, 4
test eax, eax
mov eax, 5
jne 0x495bbd
mov eax, 4
mov ecx, esi
call fcn.00494cb0
test edi, edi
je case.0x4959c2.1
mov dword [esp + 0x10], 1
jmp case.0x4959c2.1
mov eax, dword [ebp]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004a9270
mov edi, eax
mov eax, dword [ebp]
add esp, 8
cmp dword [eax + 0x304], ebx
je 0x495c15
push ebx
push ebp
xor ecx, ecx
mov dword [esp + 0x14], 0xffffffff
xor edi, edi
call fcn.00495180
add esp, 8
lea eax, [edi + 2]
jmp 0x4966b4
cmp edi, ebx
jne 0x495bcc
cmp dword [eax + 0xec], 2
jne 0x495c2e
cmp dword [eax + 0x320], ebx
je case.0x4959c2.1
push eax
call fcn.004ab260
add esp, 4
test eax, eax
je case.0x4959c2.1
mov dword [esp + 0xc], 0xffffffff
mov eax, 6
jmp 0x4966b4
mov edx, dword [ebp]
lea ecx, [esp + 0x30]
push ecx
push ebx
push edx
call fcn.0049cdb0
add esp, 0xc
mov edi, eax
cmp dword [esp + 0x30], ebx
je 0x495cb7
cmp edi, ebx
jne 0x495cbf
mov eax, dword [ebp]
cmp dword [eax + 0xec], 2
jne 0x495c83
cmp dword [eax + 0x320], ebx
je 0x495c90
push eax
call fcn.004ab280
add esp, 4
test eax, eax
je 0x495c9a
mov eax, 5
jmp 0x4966b4
mov eax, dword [ebp]
mov eax, dword [eax + 0x2e0]
neg eax
sbb eax, eax
mov dword [esp + 0xc], 0xffffffff
add eax, 6
jmp 0x4966b4
cmp edi, ebx
je case.0x4959c2.1
mov dword [esp + 0x10], 1
jmp case.0x4959c2.1
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.0048f5e0
add esp, 8
mov edi, eax
cmp dword [esp + 0x14], ebx
jne 0x495cef
mov eax, 7
jmp 0x4966b4
cmp edi, ebx
jne 0x495d1d
mov eax, dword [esp + 0x44]
push 1
push eax
call fcn.00493be0
add esp, 8
neg eax
sbb eax, eax
add eax, 9
mov ecx, esi
call fcn.00494cb0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4959c2.1
push esi
call fcn.004ae3a0
push 1
push ebp
mov ecx, edi
call fcn.00495180
add esp, 0xc
mov dword [esp + 0x10], 1
jmp case.0x4959c2.1
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.0048f560
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x495d1d
cmp dword [esp + 0x14], ebx
je case.0x4959c2.1
jmp 0x495cf3
mov ecx, dword [ebp]
push ecx
push esi
call fcn.004a98d0
add esp, 8
test eax, eax
je case.0x4959c2.1
mov eax, 9
mov ecx, esi
call fcn.00494cb0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4959c2.1
cmp dword [esi + 0x5c0], ebx
je 0x495dbe
mov edx, dword [ebp]
push ebx
push edx
call fcn.0049c790
add esp, 8
mov eax, 0x10
mov ecx, esi
call fcn.00494cb0
xor edi, edi
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4959c2.1
lea eax, [esp + 0x1c]
push eax
mov ebx, ebp
call fcn.00495660
mov edi, eax
add esp, 4
test edi, edi
jne 0x495e68
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
jne 0x495e31
cmp dword [esi + 0xc60], ebx
je 0x495e1c
mov eax, dword [esi + 0xcc8]
cmp eax, 7
je 0x495df7
cmp eax, 5
jne 0x495e1c
push ebx
push ebp
xor ecx, ecx
call fcn.00495180
add esp, 8
mov eax, 0x10
mov ecx, esi
call fcn.00494cb0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4959c2.1
mov eax, 0xa
mov ecx, esi
call fcn.00494cb0
mov dword [esp + 0xc], ebx
jmp case.0x4959c2.1
mov ecx, dword [ebp]
cmp dword [ecx + 0x2cc], ebx
mov ecx, esi
je 0x495e51
mov eax, 0xb
call fcn.00494cb0
mov dword [esp + 0xc], ebx
jmp case.0x4959c2.1
mov eax, 0xc
call fcn.00494cb0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4959c2.1
cmp edi, 0x37
jne 0x495f3b
mov eax, dword [ebp]
cmp dword [eax + 0x2a4], 0
je 0x495f3b
lea edx, [esp + 0x18]
push edx
xor ebx, ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.004ae9e0
add esp, 8
test eax, eax
je 0x495ea5
mov edi, eax
mov dword [esp + 0x10], 1
jmp 0x495eae
xor ebx, ebx
cmp dword [esp + 0x18], ebx
setne bl
push esi
call fcn.004ae3a0
push 0
push ebp
mov ecx, edi
call fcn.00495180
add esp, 0xc
test ebx, ebx
je 0x495f20
test eax, eax
je 0x495ee3
cmp eax, 0x37
je 0x495ee3
mov ecx, dword [esp + 0x18]
push ecx
mov edi, eax
call dword [0x4db00c]
add esp, 4
jmp case.0x4959c2.1
mov eax, dword [esp + 0x18]
push 2
push eax
push esi
call fcn.004ae770
add esp, 0xc
test eax, eax
jne 0x495ece
mov eax, 2
mov ecx, esi
call fcn.00494cb0
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x10], 0xffffffff
xor edi, edi
call dword [0x4db00c]
add esp, 4
jmp case.0x4959c2.1
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x14], 1
call dword [0x4db00c]
add esp, 4
jmp case.0x4959c2.1
push esi
call fcn.004ae3a0
add esp, 4
cmp dword [ebp], 0
je 0x495f57
push 0
push ebp
mov ecx, edi
call fcn.00495180
add esp, 8
mov dword [esp + 0x10], 1
jmp case.0x4959c2.1
mov eax, dword [ebp]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0048f5a0
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x495fa9
cmp dword [esp + 0x1c], ebx
je case.0x4959c2.1
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x2cc]
neg eax
sbb eax, eax
add eax, 0xc
mov ecx, esi
call fcn.00494cb0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4959c2.1
push esi
call fcn.004ae3a0
push ebx
jmp 0x495d25
mov edi, dword [ebp]
lea ebx, [esp + 0x34]
call fcn.00493f60
mov edi, eax
test edi, edi
jne 0x495ffe
mov eax, dword [esp + 0x34]
test eax, eax
je 0x495ff1
xor edx, edx
cmp eax, 1
sete dl
mov ecx, esi
lea edx, [edx + edx + 0xa]
mov eax, edx
call fcn.00494cb0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4959c2.1
mov dword [esp + 0xc], 0
jmp case.0x4959c2.1
push esi
call fcn.004ae3a0
push 0
jmp 0x495d25
mov eax, dword [ebp]
push eax
push esi
call fcn.004a99e0
mov eax, dword [ebp]
add esp, 8
cmp dword [eax + 0x310], ebx
jne 0x49602b
cmp dword [eax + 0x3d4], ebx
je 0x496034
mov eax, dword [esp + 0x44]
call fcn.00495140
mov ebp, dword [ebp]
or eax, 0xffffffff
cmp dword [ebp + 0x35c], eax
jne 0x496084
cmp dword [ebp + 0x360], eax
jne 0x496084
cmp dword [esi + 0xc60], ebx
je 0x49606b
mov ecx, dword [ebp + 0x350]
test dword [ecx + 0x44], 0x1000
jne 0x49606b
mov dword [esi + 0xcc8], 7
mov eax, 0x10
mov ecx, esi
call fcn.00494cb0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4959c2.1
mov eax, 0xd
mov ecx, esi
call fcn.00494cb0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4959c2.1
mov edx, dword [ebp]
push edx
push esi
call fcn.004a9920
add esp, 8
test eax, eax
je case.0x4959c2.1
mov eax, 0xe
mov ecx, esi
call fcn.00494cb0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4959c2.1
mov eax, dword [ebp]
push eax
call fcn.004a3460
add esp, 4
test eax, eax
je 0x4960e5
mov edi, 0x2a
jmp case.0x4959c2.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 esi
mov dword [eax + 0xc], edx
call fcn.004ac2d0
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne case.0x4959c2.1
mov ecx, dword [esi + 0x24c]
mov edx, dword [esi + 0x248]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x3c], ebx
jl 0x4961a8
jg 0x496134
cmp edx, ebx
jbe 0x4961a8
mov ebx, dword [esp + 0x48]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x5c]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x60]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x64]
mov dword [eax + 0xc], ebx
mov ebx, dword [esi + 0x850]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esi + 0x854]
mov dword [eax + 4], ebx
mov ebx, dword [esi + 0x858]
mov dword [eax + 8], ebx
mov ebx, dword [esi + 0x85c]
push ecx
mov ecx, dword [esi + 0x860]
push edx
mov edx, dword [esi + 0x7a4]
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 0x864]
push eax
mov eax, dword [esi + 0x7a0]
push ecx
push edx
push eax
call fcn.004a3100
add esp, 0x38
mov ebx, eax
mov dword [esp + 0x3c], edx
mov ecx, dword [esi + 0x254]
mov ebp, dword [esi + 0x250]
xor eax, eax
xor edx, edx
test ecx, ecx
jl 0x496230
jg 0x4961c2
test ebp, ebp
jbe 0x496230
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 [esi + 0x868]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esi + 0x86c]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x870]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x874]
push ecx
mov ecx, dword [esi + 0x878]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x87c]
mov edx, dword [esi + 0x79c]
push ebp
push eax
mov eax, dword [esi + 0x798]
push ecx
push edx
push eax
call fcn.004a3100
add esp, 0x38
mov ecx, dword [esp + 0x3c]
mov ebp, ebx
or ebp, ecx
jne 0x496278
mov ebp, eax
or ebp, edx
jne 0x496278
lea eax, [ebp + 0xe]
mov ecx, esi
call fcn.00494cb0
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 esi
mov dword [eax + 0xc], edx
call fcn.004a3220
add esp, 0x14
jmp case.0x4959c2.1
cmp ecx, edx
jl 0x496294
jg 0x496282
cmp ebx, eax
jb 0x496294
push 9
push ecx
push ebx
push esi
call fcn.004948e0
add esp, 0x10
jmp case.0x4959c2.1
push 9
push edx
push eax
push esi
call fcn.004948e0
add esp, 0x10
jmp case.0x4959c2.1
mov ecx, dword [esi + 0x24c]
cmp ecx, ebx
mov edx, dword [esi + 0x248]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
jl 0x496346
jg 0x4962d0
cmp edx, ebx
jbe 0x496346
mov ebx, dword [esp + 0x48]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x5c]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x60]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x64]
mov dword [eax + 0xc], ebx
mov ebx, dword [esi + 0x850]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esi + 0x854]
mov dword [eax + 4], ebx
mov ebx, dword [esi + 0x858]
mov dword [eax + 8], ebx
mov ebx, dword [esi + 0x85c]
push ecx
mov ecx, dword [esi + 0x860]
push edx
mov edx, dword [esi + 0x7a4]
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 0x864]
push eax
mov eax, dword [esi + 0x7a0]
push ecx
push edx
push eax
call fcn.004a3100
add esp, 0x38
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov ecx, dword [esi + 0x254]
mov edx, dword [esi + 0x250]
xor ebp, ebp
xor ebx, ebx
test ecx, ecx
jl 0x4963d2
jg 0x496360
test edx, edx
jbe 0x4963d2
mov ebx, dword [esp + 0x48]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x5c]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x60]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x64]
mov dword [eax + 0xc], ebx
mov ebx, dword [esi + 0x868]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esi + 0x86c]
push ecx
mov ecx, dword [esi + 0x87c]
mov dword [eax + 4], ebx
mov ebx, dword [esi + 0x870]
push edx
mov edx, dword [esi + 0x878]
mov dword [eax + 8], ebx
mov ebx, dword [esi + 0x874]
push ecx
mov ecx, dword [esi + 0x798]
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 0x79c]
push edx
push eax
push ecx
call fcn.004a3100
add esp, 0x38
mov ebp, eax
mov ebx, edx
mov edx, dword [esp + 0x38]
or edx, dword [esp + 0x3c]
jne 0x4965da
mov eax, ebp
or eax, ebx
jne 0x4965da
mov eax, dword [esi + 8]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea ebp, [esi + 8]
push esi
push eax
call fcn.004adce0
add esp, 0x10
test byte [esi + 0x134], 1
mov edi, eax
jne 0x49641b
mov ecx, dword [ebp]
push ecx
call fcn.004a9980
add esp, 4
test byte [esi + 0x134], 2
jne 0x496430
mov edx, dword [ebp]
push edx
call fcn.004a9970
add esp, 4
cmp dword [esp + 0x20], 0
jne 0x49643c
cmp edi, 0x38
jne 0x496470
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.004ae9e0
add esp, 8
test eax, eax
jne 0x49646a
xor ebx, ebx
cmp dword [esp + 0x18], ebx
setne bl
test ebx, ebx
je 0x496474
xor edi, edi
mov dword [esp + 0x20], 1
jmp 0x4964c8
test edi, edi
jne 0x496478
mov edi, eax
mov ebx, dword [esp + 0x24]
test edi, edi
je 0x4964bd
mov eax, dword [ebp]
mov edx, dword [eax + 0x350]
test byte [edx + 0x44], 2
jne 0x496497
cmp edi, 0x5c
je 0x496497
push 2
push eax
call fcn.0049c790
add esp, 8
push esi
call fcn.004ae3a0
push 1
push ebp
mov ecx, edi
call fcn.00495180
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [0x4db00c]
add esp, 4
jmp case.0x4959c2.1
cmp dword [esp + 0x20], 0
je 0x4965b8
push esi
call fcn.004ae3a0
mov eax, dword [ebp]
add eax, 0x3d8
push eax
push esi
call fcn.0048f180
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x3d8]
add esp, 0xc
test eax, eax
je 0x4964fe
mov edx, dword [eax]
push 6
push 0
push 0
push edx
call fcn.004948e0
add esp, 0x10
cmp dword [esi + 0x148], 0
jne 0x496556
test ebx, ebx
jne 0x49657f
cmp dword [esi + 0x144], ebx
je 0x496548
mov eax, dword [esp + 0x18]
push eax
call dword [0x4db00c]
mov eax, dword [esi + 0x144]
push 1
push eax
push esi
mov dword [esp + 0x28], eax
mov dword [esi + 0x144], ebx
call fcn.004ae770
mov edi, eax
add esp, 0x10
test edi, edi
je 0x496548
mov dword [esp + 0x10], 1
mov eax, 0x10
mov ecx, esi
call fcn.00494cb0
jmp 0x4965bf
test ebx, ebx
jne 0x49657f
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x4db00c]
mov edx, dword [esi + 0x148]
mov dword [esi + 0x148], ebx
add esp, 4
mov dword [esp + 0x18], edx
mov ebx, 3
jmp 0x496584
mov ebx, 2
push 0
push ebp
xor ecx, ecx
call fcn.00495180
mov edi, eax
add esp, 8
test edi, edi
jne 0x4965c7
mov eax, dword [esp + 0x18]
push ebx
push eax
push esi
call fcn.004ae770
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4965c7
lea eax, [edi + 2]
mov ecx, esi
call fcn.00494cb0
jmp 0x4965bf
cmp dword [esp + 0x28], 0
je 0x4965c7
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x4db00c]
add esp, 4
jmp case.0x4959c2.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 esi
mov dword [eax + 0xc], ecx
call fcn.004a3220
add esp, 0x14
mov eax, 0xf
mov ecx, esi
call fcn.00494cb0
cmp dword [esp + 0x3c], ebx
jl 0x496637
jg 0x49661d
cmp dword [esp + 0x38], ebp
jb 0x496637
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push 9
push edx
push eax
push esi
call fcn.004948e0
add esp, 0x10
jmp case.0x4959c2.1
push 9
push ebx
push ebp
push esi
call fcn.004948e0
add esp, 0x10
jmp case.0x4959c2.1
mov eax, dword [ebp]
mov dword [esp + 0xc], 0xffffffff
cmp eax, ebx
je 0x49669a
add eax, 0x3d8
push eax
push esi
call fcn.0048f180
mov eax, dword [ebp]
add esp, 8
cmp dword [eax + 0x310], ebx
jne 0x496677
cmp dword [eax + 0x3d4], ebx
je 0x496680
mov eax, dword [esp + 0x44]
call fcn.00495140
push ebx
push ebp
mov ecx, edi
call fcn.00495180
add esp, 8
cmp edi, ebx
jne 0x496692
mov edi, eax
cmp dword [ebp], ebx
je 0x49669a
mov dword [ebp], ebx
cmp dword [esi + 0xc60], ebx
je 0x4966af
cmp dword [esi + 0xcc8], 7
je 0x4966af
xor eax, eax
jmp 0x4966b4
mov eax, 0x11
mov ecx, esi
call fcn.00494cb0
mov ebx, 0x11
cmp dword [esi + 0x24], ebx
jge 0x4967a0
test edi, edi
je 0x496761
mov eax, dword [esp + 0x44]
call fcn.00495140
mov eax, dword [esi + 8]
test eax, eax
je 0x496744
push eax
call fcn.004a9970
mov ecx, dword [esi + 8]
push ecx
call fcn.004a9980
mov edx, dword [esi + 8]
add edx, 0x3c8
push edx
push esi
call fcn.0048f180
mov eax, dword [esi + 8]
add eax, 0x3d8
push eax
push esi
call fcn.0048f180
add esp, 0x18
cmp dword [esp + 0x10], 0
je 0x496753
mov edx, dword [esi + 8]
xor ecx, ecx
cmp edi, 0x1c
sete cl
push ecx
push edx
push esi
call fcn.00491380
add esp, 0xc
mov eax, ebx
mov ecx, esi
mov dword [esi + 8], 0
call fcn.00494cb0
or ebp, 0xffffffff
jmp 0x4967a4
cmp dword [esi + 0x24], 2
jne 0x496753
push esi
call fcn.004ae3a0
add esp, 4
mov eax, ebx
mov ecx, esi
call fcn.00494cb0
or ebp, 0xffffffff
jmp 0x4967a4
mov eax, dword [esi + 8]
test eax, eax
je 0x4967a0
push eax
call fcn.004a3460
add esp, 4
test eax, eax
je 0x4967a0
mov eax, dword [esi + 8]
push 2
push eax
mov edi, 0x2a
call fcn.0049c790
xor eax, eax
add esp, 8
cmp dword [esi + 0x24], 0x10
mov ecx, esi
setge al
add eax, 0x10
call fcn.00494cb0
or ebp, 0xffffffff
jmp 0x4967a4
mov ebp, dword [esp + 0xc]
cmp dword [esi + 0x24], ebx
jne 0x4967d0
mov ecx, dword [esp + 0x44]
lea eax, [esi + 0x2c]
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
call fcn.00493ad0
mov ebp, eax
mov eax, 0x12
mov ecx, esi
call fcn.00494cb0
cmp ebp, 0xffffffff
je 0x495720
mov ecx, dword [esp + 0x44]
push 0
call fcn.00493f00
add esp, 4
test eax, eax
jne 0x495720
mov dword [esi + 0x28], edi
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
mov ecx, dword [esi + 0x24]
push ecx
push str.In_state__d_with_no_easy_conn__bail_out__n
push esi
call fcn.00497270
add esp, 0xc
mov eax, 4
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
mov dword [esi + 0x28], edi
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
pop edi
pop ebp
mov eax, 2
pop ebx
add esp, 0x34
ret