Function at 0x4956a0
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 0x4967d5
cmp dword [esi + 0xda8], 0xc0dedbad
jne 0x4967d5
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 0x4956f3
mov eax, dword [esi + 0x24]
cmp eax, 2
jle 0x4956f3
cmp eax, 0x10
jl 0x4967ab
mov ecx, dword [esp + 0x44]
push 1
call fcn.00493eb0
add esp, 4
test eax, eax
je 0x49570c
mov eax, ecx
call fcn.004950f0
mov ecx, dword [ebp]
cmp ecx, ebx
je 0x495966
mov eax, dword [esi + 0x24]
cmp eax, 2
jle 0x495726
cmp eax, 0x11
jge 0x495726
mov dword [ecx], esi
cmp dword [ebp], ebx
je 0x495966
mov eax, dword [esi + 0x24]
cmp eax, 2
jl 0x495966
cmp eax, 0x11
jge 0x495966
xor ecx, ecx
cmp eax, 8
setle cl
lea edx, [esp + 0x48]
push ecx
push edx
push esi
call fcn.0049bba0
add esp, 0xc
cmp edx, ebx
jg 0x495966
jl 0x49576d
cmp eax, ebx
jae 0x495966
mov eax, dword [esi + 0x24]
cmp eax, 3
jne 0x4957d7
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.0049ddf0
push edx
push eax
push str.Resolving_timed_out_after__ld_milliseconds
push esi
call fcn.00497210
add esp, 0x30
jmp 0x495933
cmp eax, 4
jne 0x49583e
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.0049ddf0
push edx
push eax
push str.Connection_timed_out_after__ld_milliseconds
push esi
call fcn.00497210
add esp, 0x30
jmp 0x495933
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x4958c5
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.0049ddf0
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.00497210
add esp, 0x20
jmp 0x495933
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.0049ddf0
add esp, 0x20
push edx
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_bytes_received
push esi
call fcn.00497210
add esp, 0x18
cmp dword [esi + 0x24], 9
jle 0x49594f
mov eax, dword [ebp]
push 2
push eax
call fcn.0049c740
add esp, 8
mov dword [esp + 0x10], 1
mov edi, 0x1c
push 1
push ebp
mov ecx, edi
call fcn.00495130
add esp, 8
jmp case.0x495972.1
mov eax, dword [esi + 0x24]
cmp eax, 0x12
ja case.default.0x495972
jmp dword [eax*4 + 0x4967e4]
push esi
call fcn.004ae150
mov edi, eax
add esp, 4
cmp edi, ebx
jne case.0x495972.1
mov eax, 2
mov ecx, esi
call fcn.00494c60
push 1
push esi
call fcn.004a2ea0
add esp, 8
mov dword [esp + 0xc], 0xffffffff
jmp case.0x495972.1
push 2
push esi
call fcn.004a2ea0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x38]
push edx
push ebp
push esi
call fcn.004938c0
mov edi, eax
add esp, 0x18
cmp edi, 0x59
jne 0x4959fd
lea eax, [edi - 0x58]
mov ecx, esi
call fcn.00494c60
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.004a92c0
add esp, 0x10
xor edi, edi
jmp case.0x495972.1
cmp edi, ebx
jne case.0x495972.1
mov edx, dword [ebp]
push edx
push esi
call fcn.004a9930
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x495ce0
cmp dword [esp + 0x2c], ebx
je 0x495a2c
mov eax, 3
jmp 0x496664
mov dword [esp + 0xc], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x495a55
mov eax, dword [esp + 0x44]
push 1
push eax
call fcn.00493b90
add esp, 8
neg eax
sbb eax, eax
add eax, 9
jmp 0x496664
mov ecx, dword [ebp]
push ecx
call fcn.004ab220
add esp, 4
mov ecx, esi
test eax, eax
je 0x495a71
mov eax, 5
jmp 0x496666
mov eax, 4
jmp 0x496666
mov edi, dword [ebp]
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x2b4], ebx
je 0x495a92
mov ebx, dword [edi + 0xe0]
jmp 0x495aa8
cmp dword [edi + 0x2a8], ebx
je 0x495aa2
mov ebx, dword [edi + 0xb0]
jmp 0x495aa8
mov ebx, dword [edi + 0x9c]
mov edx, dword [edi + 0xf8]
push edx
push ebx
push edi
call fcn.0048e080
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x495ae8
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.00497180
add esp, 0xc
cmp dword [esp + 0x18], edi
jne 0x495afb
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0048c4c0
add esp, 8
mov edi, eax
mov ebx, dword [esp + 0x44]
push esi
push ebx
call fcn.00493fa0
add esp, 8
cmp dword [esp + 0x18], 0
je 0x495b74
mov eax, dword [ebp]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0049e3d0
mov edi, eax
add esp, 8
test edi, edi
je 0x495b30
mov dword [ebp], 0
jmp 0x495b74
cmp dword [esp + 0x14], 0
mov dword [esp + 0xc], 0xffffffff
je 0x495b53
push 1
push ebx
call fcn.00493b90
add esp, 8
neg eax
sbb eax, eax
add eax, 9
jmp 0x495b6d
mov ecx, dword [ebp]
push ecx
call fcn.004ab220
add esp, 4
test eax, eax
mov eax, 5
jne 0x495b6d
mov eax, 4
mov ecx, esi
call fcn.00494c60
test edi, edi
je case.0x495972.1
mov dword [esp + 0x10], 1
jmp case.0x495972.1
mov eax, dword [ebp]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004a9210
mov edi, eax
mov eax, dword [ebp]
add esp, 8
cmp dword [eax + 0x304], ebx
je 0x495bc5
push ebx
push ebp
xor ecx, ecx
mov dword [esp + 0x14], 0xffffffff
xor edi, edi
call fcn.00495130
add esp, 8
lea eax, [edi + 2]
jmp 0x496664
cmp edi, ebx
jne 0x495b7c
cmp dword [eax + 0xec], 2
jne 0x495bde
cmp dword [eax + 0x320], ebx
je case.0x495972.1
push eax
call fcn.004ab200
add esp, 4
test eax, eax
je case.0x495972.1
mov dword [esp + 0xc], 0xffffffff
mov eax, 6
jmp 0x496664
mov edx, dword [ebp]
lea ecx, [esp + 0x30]
push ecx
push ebx
push edx
call fcn.0049cd60
add esp, 0xc
mov edi, eax
cmp dword [esp + 0x30], ebx
je 0x495c67
cmp edi, ebx
jne 0x495c6f
mov eax, dword [ebp]
cmp dword [eax + 0xec], 2
jne 0x495c33
cmp dword [eax + 0x320], ebx
je 0x495c40
push eax
call fcn.004ab220
add esp, 4
test eax, eax
je 0x495c4a
mov eax, 5
jmp 0x496664
mov eax, dword [ebp]
mov eax, dword [eax + 0x2e0]
neg eax
sbb eax, eax
mov dword [esp + 0xc], 0xffffffff
add eax, 6
jmp 0x496664
cmp edi, ebx
je case.0x495972.1
mov dword [esp + 0x10], 1
jmp case.0x495972.1
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.0048f590
add esp, 8
mov edi, eax
cmp dword [esp + 0x14], ebx
jne 0x495c9f
mov eax, 7
jmp 0x496664
cmp edi, ebx
jne 0x495ccd
mov eax, dword [esp + 0x44]
push 1
push eax
call fcn.00493b90
add esp, 8
neg eax
sbb eax, eax
add eax, 9
mov ecx, esi
call fcn.00494c60
mov dword [esp + 0xc], 0xffffffff
jmp case.0x495972.1
push esi
call fcn.004ae340
push 1
push ebp
mov ecx, edi
call fcn.00495130
add esp, 0xc
mov dword [esp + 0x10], 1
jmp case.0x495972.1
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.0048f510
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x495ccd
cmp dword [esp + 0x14], ebx
je case.0x495972.1
jmp 0x495ca3
mov ecx, dword [ebp]
push ecx
push esi
call fcn.004a9870
add esp, 8
test eax, eax
je case.0x495972.1
mov eax, 9
mov ecx, esi
call fcn.00494c60
mov dword [esp + 0xc], 0xffffffff
jmp case.0x495972.1
cmp dword [esi + 0x5c0], ebx
je 0x495d6e
mov edx, dword [ebp]
push ebx
push edx
call fcn.0049c740
add esp, 8
mov eax, 0x10
mov ecx, esi
call fcn.00494c60
xor edi, edi
mov dword [esp + 0xc], 0xffffffff
jmp case.0x495972.1
lea eax, [esp + 0x1c]
push eax
mov ebx, ebp
call fcn.00495610
mov edi, eax
add esp, 4
test edi, edi
jne 0x495e18
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
jne 0x495de1
cmp dword [esi + 0xc60], ebx
je 0x495dcc
mov eax, dword [esi + 0xcc8]
cmp eax, 7
je 0x495da7
cmp eax, 5
jne 0x495dcc
push ebx
push ebp
xor ecx, ecx
call fcn.00495130
add esp, 8
mov eax, 0x10
mov ecx, esi
call fcn.00494c60
mov dword [esp + 0xc], 0xffffffff
jmp case.0x495972.1
mov eax, 0xa
mov ecx, esi
call fcn.00494c60
mov dword [esp + 0xc], ebx
jmp case.0x495972.1
mov ecx, dword [ebp]
cmp dword [ecx + 0x2cc], ebx
mov ecx, esi
je 0x495e01
mov eax, 0xb
call fcn.00494c60
mov dword [esp + 0xc], ebx
jmp case.0x495972.1
mov eax, 0xc
call fcn.00494c60
mov dword [esp + 0xc], 0xffffffff
jmp case.0x495972.1
cmp edi, 0x37
jne 0x495eeb
mov eax, dword [ebp]
cmp dword [eax + 0x2a4], 0
je 0x495eeb
lea edx, [esp + 0x18]
push edx
xor ebx, ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.004ae980
add esp, 8
test eax, eax
je 0x495e55
mov edi, eax
mov dword [esp + 0x10], 1
jmp 0x495e5e
xor ebx, ebx
cmp dword [esp + 0x18], ebx
setne bl
push esi
call fcn.004ae340
push 0
push ebp
mov ecx, edi
call fcn.00495130
add esp, 0xc
test ebx, ebx
je 0x495ed0
test eax, eax
je 0x495e93
cmp eax, 0x37
je 0x495e93
mov ecx, dword [esp + 0x18]
push ecx
mov edi, eax
call dword [0x4db00c]
add esp, 4
jmp case.0x495972.1
mov eax, dword [esp + 0x18]
push 2
push eax
push esi
call fcn.004ae710
add esp, 0xc
test eax, eax
jne 0x495e7e
mov eax, 2
mov ecx, esi
call fcn.00494c60
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x10], 0xffffffff
xor edi, edi
call dword [0x4db00c]
add esp, 4
jmp case.0x495972.1
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x14], 1
call dword [0x4db00c]
add esp, 4
jmp case.0x495972.1
push esi
call fcn.004ae340
add esp, 4
cmp dword [ebp], 0
je 0x495f07
push 0
push ebp
mov ecx, edi
call fcn.00495130
add esp, 8
mov dword [esp + 0x10], 1
jmp case.0x495972.1
mov eax, dword [ebp]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0048f550
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x495f59
cmp dword [esp + 0x1c], ebx
je case.0x495972.1
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x2cc]
neg eax
sbb eax, eax
add eax, 0xc
mov ecx, esi
call fcn.00494c60
mov dword [esp + 0xc], 0xffffffff
jmp case.0x495972.1
push esi
call fcn.004ae340
push ebx
jmp 0x495cd5
mov edi, dword [ebp]
lea ebx, [esp + 0x34]
call fcn.00493f10
mov edi, eax
test edi, edi
jne 0x495fae
mov eax, dword [esp + 0x34]
test eax, eax
je 0x495fa1
xor edx, edx
cmp eax, 1
sete dl
mov ecx, esi
lea edx, [edx + edx + 0xa]
mov eax, edx
call fcn.00494c60
mov dword [esp + 0xc], 0xffffffff
jmp case.0x495972.1
mov dword [esp + 0xc], 0
jmp case.0x495972.1
push esi
call fcn.004ae340
push 0
jmp 0x495cd5
mov eax, dword [ebp]
push eax
push esi
call fcn.004a9980
mov eax, dword [ebp]
add esp, 8
cmp dword [eax + 0x310], ebx
jne 0x495fdb
cmp dword [eax + 0x3d4], ebx
je 0x495fe4
mov eax, dword [esp + 0x44]
call fcn.004950f0
mov ebp, dword [ebp]
or eax, 0xffffffff
cmp dword [ebp + 0x35c], eax
jne 0x496034
cmp dword [ebp + 0x360], eax
jne 0x496034
cmp dword [esi + 0xc60], ebx
je 0x49601b
mov ecx, dword [ebp + 0x350]
test dword [ecx + 0x44], 0x1000
jne 0x49601b
mov dword [esi + 0xcc8], 7
mov eax, 0x10
mov ecx, esi
call fcn.00494c60
mov dword [esp + 0xc], 0xffffffff
jmp case.0x495972.1
mov eax, 0xd
mov ecx, esi
call fcn.00494c60
mov dword [esp + 0xc], 0xffffffff
jmp case.0x495972.1
mov edx, dword [ebp]
push edx
push esi
call fcn.004a98c0
add esp, 8
test eax, eax
je case.0x495972.1
mov eax, 0xe
mov ecx, esi
call fcn.00494c60
mov dword [esp + 0xc], 0xffffffff
jmp case.0x495972.1
mov eax, dword [ebp]
push eax
call fcn.004a3400
add esp, 4
test eax, eax
je 0x496095
mov edi, 0x2a
jmp case.0x495972.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.004ac270
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne case.0x495972.1
mov ecx, dword [esi + 0x24c]
mov edx, dword [esi + 0x248]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x3c], ebx
jl 0x496158
jg 0x4960e4
cmp edx, ebx
jbe 0x496158
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.004a30a0
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 0x4961e0
jg 0x496172
test ebp, ebp
jbe 0x4961e0
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.004a30a0
add esp, 0x38
mov ecx, dword [esp + 0x3c]
mov ebp, ebx
or ebp, ecx
jne 0x496228
mov ebp, eax
or ebp, edx
jne 0x496228
lea eax, [ebp + 0xe]
mov ecx, esi
call fcn.00494c60
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.004a31c0
add esp, 0x14
jmp case.0x495972.1
cmp ecx, edx
jl 0x496244
jg 0x496232
cmp ebx, eax
jb 0x496244
push 9
push ecx
push ebx
push esi
call fcn.00494890
add esp, 0x10
jmp case.0x495972.1
push 9
push edx
push eax
push esi
call fcn.00494890
add esp, 0x10
jmp case.0x495972.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 0x4962f6
jg 0x496280
cmp edx, ebx
jbe 0x4962f6
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.004a30a0
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 0x496382
jg 0x496310
test edx, edx
jbe 0x496382
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.004a30a0
add esp, 0x38
mov ebp, eax
mov ebx, edx
mov edx, dword [esp + 0x38]
or edx, dword [esp + 0x3c]
jne 0x49658a
mov eax, ebp
or eax, ebx
jne 0x49658a
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.004adc80
add esp, 0x10
test byte [esi + 0x134], 1
mov edi, eax
jne 0x4963cb
mov ecx, dword [ebp]
push ecx
call fcn.004a9920
add esp, 4
test byte [esi + 0x134], 2
jne 0x4963e0
mov edx, dword [ebp]
push edx
call fcn.004a9910
add esp, 4
cmp dword [esp + 0x20], 0
jne 0x4963ec
cmp edi, 0x38
jne 0x496420
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.004ae980
add esp, 8
test eax, eax
jne 0x49641a
xor ebx, ebx
cmp dword [esp + 0x18], ebx
setne bl
test ebx, ebx
je 0x496424
xor edi, edi
mov dword [esp + 0x20], 1
jmp 0x496478
test edi, edi
jne 0x496428
mov edi, eax
mov ebx, dword [esp + 0x24]
test edi, edi
je 0x49646d
mov eax, dword [ebp]
mov edx, dword [eax + 0x350]
test byte [edx + 0x44], 2
jne 0x496447
cmp edi, 0x5c
je 0x496447
push 2
push eax
call fcn.0049c740
add esp, 8
push esi
call fcn.004ae340
push 1
push ebp
mov ecx, edi
call fcn.00495130
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [0x4db00c]
add esp, 4
jmp case.0x495972.1
cmp dword [esp + 0x20], 0
je 0x496568
push esi
call fcn.004ae340
mov eax, dword [ebp]
add eax, 0x3d8
push eax
push esi
call fcn.0048f130
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x3d8]
add esp, 0xc
test eax, eax
je 0x4964ae
mov edx, dword [eax]
push 6
push 0
push 0
push edx
call fcn.00494890
add esp, 0x10
cmp dword [esi + 0x148], 0
jne 0x496506
test ebx, ebx
jne 0x49652f
cmp dword [esi + 0x144], ebx
je 0x4964f8
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.004ae710
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4964f8
mov dword [esp + 0x10], 1
mov eax, 0x10
mov ecx, esi
call fcn.00494c60
jmp 0x49656f
test ebx, ebx
jne 0x49652f
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 0x496534
mov ebx, 2
push 0
push ebp
xor ecx, ecx
call fcn.00495130
mov edi, eax
add esp, 8
test edi, edi
jne 0x496577
mov eax, dword [esp + 0x18]
push ebx
push eax
push esi
call fcn.004ae710
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x496577
lea eax, [edi + 2]
mov ecx, esi
call fcn.00494c60
jmp 0x49656f
cmp dword [esp + 0x28], 0
je 0x496577
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x4db00c]
add esp, 4
jmp case.0x495972.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.004a31c0
add esp, 0x14
mov eax, 0xf
mov ecx, esi
call fcn.00494c60
cmp dword [esp + 0x3c], ebx
jl 0x4965e7
jg 0x4965cd
cmp dword [esp + 0x38], ebp
jb 0x4965e7
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push 9
push edx
push eax
push esi
call fcn.00494890
add esp, 0x10
jmp case.0x495972.1
push 9
push ebx
push ebp
push esi
call fcn.00494890
add esp, 0x10
jmp case.0x495972.1
mov eax, dword [ebp]
mov dword [esp + 0xc], 0xffffffff
cmp eax, ebx
je 0x49664a
add eax, 0x3d8
push eax
push esi
call fcn.0048f130
mov eax, dword [ebp]
add esp, 8
cmp dword [eax + 0x310], ebx
jne 0x496627
cmp dword [eax + 0x3d4], ebx
je 0x496630
mov eax, dword [esp + 0x44]
call fcn.004950f0
push ebx
push ebp
mov ecx, edi
call fcn.00495130
add esp, 8
cmp edi, ebx
jne 0x496642
mov edi, eax
cmp dword [ebp], ebx
je 0x49664a
mov dword [ebp], ebx
cmp dword [esi + 0xc60], ebx
je 0x49665f
cmp dword [esi + 0xcc8], 7
je 0x49665f
xor eax, eax
jmp 0x496664
mov eax, 0x11
mov ecx, esi
call fcn.00494c60
mov ebx, 0x11
cmp dword [esi + 0x24], ebx
jge 0x496750
test edi, edi
je 0x496711
mov eax, dword [esp + 0x44]
call fcn.004950f0
mov eax, dword [esi + 8]
test eax, eax
je 0x4966f4
push eax
call fcn.004a9910
mov ecx, dword [esi + 8]
push ecx
call fcn.004a9920
mov edx, dword [esi + 8]
add edx, 0x3c8
push edx
push esi
call fcn.0048f130
mov eax, dword [esi + 8]
add eax, 0x3d8
push eax
push esi
call fcn.0048f130
add esp, 0x18
cmp dword [esp + 0x10], 0
je 0x496703
mov edx, dword [esi + 8]
xor ecx, ecx
cmp edi, 0x1c
sete cl
push ecx
push edx
push esi
call fcn.00491330
add esp, 0xc
mov eax, ebx
mov ecx, esi
mov dword [esi + 8], 0
call fcn.00494c60
or ebp, 0xffffffff
jmp 0x496754
cmp dword [esi + 0x24], 2
jne 0x496703
push esi
call fcn.004ae340
add esp, 4
mov eax, ebx
mov ecx, esi
call fcn.00494c60
or ebp, 0xffffffff
jmp 0x496754
mov eax, dword [esi + 8]
test eax, eax
je 0x496750
push eax
call fcn.004a3400
add esp, 4
test eax, eax
je 0x496750
mov eax, dword [esi + 8]
push 2
push eax
mov edi, 0x2a
call fcn.0049c740
xor eax, eax
add esp, 8
cmp dword [esi + 0x24], 0x10
mov ecx, esi
setge al
add eax, 0x10
call fcn.00494c60
or ebp, 0xffffffff
jmp 0x496754
mov ebp, dword [esp + 0xc]
cmp dword [esi + 0x24], ebx
jne 0x496780
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.00493a80
mov ebp, eax
mov eax, 0x12
mov ecx, esi
call fcn.00494c60
cmp ebp, 0xffffffff
je 0x4956d0
mov ecx, dword [esp + 0x44]
push 0
call fcn.00493eb0
add esp, 4
test eax, eax
jne 0x4956d0
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.00497210
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