Function at 0x402db0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x28
push ebp
xor ebp, ebp
push edi
xor edi, edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
cmp esi, ebp
je 0x403ba4
cmp dword [esi + 0x87dc], 0xc0dedbad
jne 0x403ba4
push ebx
mov edi, edi
xor ebx, ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x86d0], ebp
je 0x402e2f
mov eax, dword [esi + 0x86d8]
push eax
push esi
push str.Pipe_broke:_handle__p__url___s_n
push esi
call fcn.0040cba0
mov eax, dword [esi + 0xc]
add esp, 0x10
cmp eax, 0x11
jge 0x402e21
cmp eax, 2
je 0x402e1c
mov dword [esi + 0xc], 2
or ebx, 0xffffffff
xor edi, edi
mov dword [esi + 0x86d0], ebp
mov dword [esi + 8], ebp
jmp 0x403b56
cmp dword [esi + 8], ebx
lea ebp, [esi + 8]
jne 0x402e48
mov eax, dword [esi + 0xc]
cmp eax, 2
jle 0x402e48
cmp eax, 0x10
jl 0x403b7a
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0x64]
mov dword [ecx + 0x64], ebx
test eax, eax
je 0x402e5f
push ecx
call fcn.00402aa0
add esp, 4
mov ecx, dword [ebp]
test ecx, ecx
je 0x402e75
mov eax, dword [esi + 0xc]
cmp eax, 2
jle 0x402e75
cmp eax, 0x11
jge 0x402e75
mov dword [ecx], esi
cmp dword [ebp], ebx
je 0x402fcb
mov eax, dword [esi + 0xc]
cmp eax, 2
jl 0x402fcb
cmp eax, 0x11
jge 0x402fcb
xor edx, edx
cmp eax, 8
setle dl
lea eax, [esp + 0x3c]
push edx
push eax
push esi
call fcn.0040f180
add esp, 0xc
test eax, eax
jns 0x402fcb
mov eax, dword [esi + 0xc]
cmp eax, 3
jne 0x402eeb
mov ecx, dword [esi + 0x54c]
mov edx, dword [esi + 0x548]
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
call fcn.0040c770
push eax
push str.Resolving_timed_out_after__ld_milliseconds
push esi
call fcn.0040cc30
add esp, 0x1c
jmp 0x402f9d
cmp eax, 4
jne 0x402f1e
mov edx, dword [esi + 0x54c]
mov eax, dword [esi + 0x548]
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
call fcn.0040c770
push eax
push str.Connection_timed_out_after__ld_milliseconds
push esi
call fcn.0040cc30
add esp, 0x1c
jmp 0x402f9d
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
mov edx, dword [esi + 0x54c]
je 0x402f6c
push ecx
mov ecx, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0x74]
push eax
mov eax, dword [esi + 0x548]
push ecx
mov ecx, dword [esi + 0x94]
push edx
mov edx, dword [esi + 0x90]
push eax
push ecx
push edx
call fcn.0040c770
add esp, 0x10
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_out_of__I64d_bytes_received
push esi
call fcn.0040cc30
add esp, 0x1c
jmp 0x402f9d
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0x548]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
call fcn.0040c770
add esp, 0x10
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_bytes_received
push esi
call fcn.0040cc30
add esp, 0x14
cmp dword [esi + 0xc], 9
jle 0x402fb5
mov ecx, dword [ebp]
mov eax, 1
mov dword [ecx + 0x1f4], eax
mov dword [esp + 0xc], eax
push 1
mov edi, 0x1c
push edi
push ebp
call fcn.0040b6a0
add esp, 0xc
jmp case.0x402fd7.1
mov eax, dword [esi + 0xc]
cmp eax, 0x12
ja case.default.0x402fd7
jmp dword [eax*4 + 0x403bb0]
push esi
call fcn.004137f0
mov edi, eax
add esp, 4
test edi, edi
jne case.0x402fd7.1
mov eax, 2
cmp dword [esi + 0xc], eax
je 0x402ffe
mov dword [esi + 0xc], eax
push 1
push esi
call fcn.00414fa0
add esp, 8
or ebx, 0xffffffff
jmp case.0x402fd7.1
push 2
push esi
call fcn.00414fa0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push ebp
push esi
call fcn.0040c6a0
mov edi, eax
add esp, 0x18
cmp edi, 0x59
jne 0x403067
mov eax, 1
cmp dword [esi + 0xc], eax
je 0x403041
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0x18]
mov edx, dword [eax + 4]
push esi
push edx
push eax
call fcn.00411e90
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xffffffe5
add edi, 0x1b
jmp case.0x402fd7.1
test edi, edi
jne case.0x402fd7.1
mov eax, dword [ebp]
push eax
push esi
call fcn.004145b0
mov edi, eax
add esp, 8
test edi, edi
jne 0x40330f
cmp dword [esp + 0x28], ebx
je 0x4030a2
mov eax, 3
cmp dword [esi + 0xc], eax
je case.0x402fd7.1
mov dword [esi + 0xc], eax
jmp case.0x402fd7.1
or ebx, 0xffffffff
cmp dword [esp + 0x18], 0
je 0x4030ce
mov ecx, dword [esp + 0x38]
push 1
push ecx
call fcn.00401e30
add esp, 8
neg eax
sbb eax, eax
add eax, 9
mov ecx, esi
call fcn.00401ca0
jmp case.0x402fd7.1
mov edx, dword [ebp]
cmp dword [edx + 0x4dc], 1
jne 0x4030f0
mov eax, 5
cmp dword [esi + 0xc], eax
je case.0x402fd7.1
mov dword [esi + 0xc], eax
jmp case.0x402fd7.1
mov eax, 4
cmp dword [esi + 0xc], eax
je case.0x402fd7.1
mov dword [esi + 0xc], eax
jmp case.0x402fd7.1
mov edi, dword [ebp]
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 0xb0]
mov ecx, dword [edi + 0x98]
push eax
push ecx
push edi
call fcn.00405c70
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x403152
push str.Hostname_was_found_in_DNS_cache_n
mov dword [edi + 0x400], eax
mov dword [edi + 0x404], 1
push esi
xor edi, edi
call fcn.0040cba0
add esp, 8
cmp dword [esp + 0x14], ebx
jne 0x403165
mov eax, dword [ebp]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00404850
add esp, 8
mov edi, eax
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, esi
call fcn.00402130
add esp, 4
cmp dword [esp + 0x14], ebx
je 0x403194
mov eax, dword [ebp]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00419740
mov edi, eax
add esp, 8
test edi, edi
je 0x4031a9
mov dword [ebp], ebx
test edi, edi
je case.0x402fd7.1
mov dword [esp + 0xc], 1
jmp case.0x402fd7.1
or ebx, 0xffffffff
cmp dword [esp + 0x18], 0
jne 0x4030ac
mov edx, dword [ebp]
cmp dword [edx + 0x4dc], 1
jne 0x4031d9
cmp dword [esi + 0xc], 5
je case.0x402fd7.1
mov dword [esi + 0xc], 5
jmp case.0x402fd7.1
cmp dword [esi + 0xc], 4
je case.0x402fd7.1
mov dword [esi + 0xc], 4
jmp case.0x402fd7.1
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00416d40
mov edi, eax
mov eax, dword [ebp]
add esp, 8
or ebx, 0xffffffff
cmp dword [eax + 0x248], 0
je 0x403234
xor edi, edi
push edi
push edi
push ebp
call fcn.0040b6a0
add esp, 0xc
cmp dword [esi + 0xc], 2
je case.0x402fd7.1
mov dword [esi + 0xc], 2
jmp case.0x402fd7.1
test edi, edi
jne case.0x402fd7.1
cmp dword [eax + 0x4dc], 2
jne case.0x402fd7.1
cmp dword [esi + 0xc], 6
je case.0x402fd7.1
mov dword [esi + 0xc], 6
jmp case.0x402fd7.1
mov eax, dword [ebp]
lea edx, [esp + 0x2c]
push edx
push 0
push eax
call fcn.00410200
add esp, 0xc
mov edi, eax
cmp dword [esp + 0x2c], ebx
je 0x403194
test edi, edi
jne 0x40319c
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x228]
or ebx, 0xffffffff
neg eax
sbb eax, eax
add eax, 6
mov ecx, esi
call fcn.00401ca0
jmp case.0x402fd7.1
mov eax, dword [ebp]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00406c20
add esp, 8
mov edi, eax
cmp dword [esp + 0x18], ebx
jne 0x4032d4
cmp dword [esi + 0xc], 7
je case.0x402fd7.1
mov dword [esi + 0xc], 7
jmp case.0x402fd7.1
test edi, edi
jne 0x4032fd
mov ecx, dword [esp + 0x38]
push 1
push ecx
call fcn.00401e30
add esp, 8
neg eax
sbb eax, eax
add eax, 9
mov ecx, esi
call fcn.00401ca0
or ebx, 0xffffffff
jmp case.0x402fd7.1
push esi
call fcn.004e1280
push 1
push edi
push ebp
call fcn.0040b6a0
add esp, 0x10
mov dword [esp + 0xc], 1
jmp case.0x402fd7.1
mov eax, dword [ebp]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00406ba0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4032fd
cmp dword [esp + 0x18], ebx
je case.0x402fd7.1
jmp 0x4032d8
mov edx, dword [ebp]
push edx
push esi
call fcn.004144f0
add esp, 8
test eax, eax
je case.0x402fd7.1
mov eax, 9
cmp dword [esi + 0xc], eax
je 0x403361
mov dword [esi + 0xc], eax
or ebx, 0xffffffff
jmp case.0x402fd7.1
xor edi, edi
cmp dword [esi + 0x370], edi
je 0x403391
mov eax, dword [ebp]
mov dword [eax + 0x1f4], edi
mov eax, 0x10
cmp dword [esi + 0xc], eax
je 0x403361
mov dword [esi + 0xc], eax
or ebx, 0xffffffff
jmp case.0x402fd7.1
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.00407f60
mov edi, eax
add esp, 8
test edi, edi
jne 0x403435
cmp dword [esp + 0x1c], ebx
jne 0x4033fd
cmp dword [esi + 0x458], ebx
je 0x4033e9
mov eax, dword [esi + 0x8718]
cmp eax, 6
je 0x4033c7
cmp eax, 4
jne 0x4033e9
push 0
push 0
push ebp
call fcn.0040b6a0
mov eax, 0x10
add esp, 0xc
cmp dword [esi + 0xc], eax
je 0x403361
mov dword [esi + 0xc], eax
or ebx, 0xffffffff
jmp case.0x402fd7.1
mov eax, 0xa
cmp dword [esi + 0xc], eax
je 0x403415
mov dword [esi + 0xc], eax
xor ebx, ebx
jmp case.0x402fd7.1
mov edx, dword [ebp]
cmp dword [edx + 0x214], ebx
je 0x40341c
mov eax, 0xb
cmp dword [esi + 0xc], eax
je 0x403415
mov dword [esi + 0xc], eax
xor ebx, ebx
jmp case.0x402fd7.1
mov eax, 0xc
cmp dword [esi + 0xc], eax
je 0x403361
mov dword [esi + 0xc], eax
or ebx, 0xffffffff
jmp case.0x402fd7.1
cmp edi, 0x37
jne 0x40351d
mov eax, dword [ebp]
cmp dword [eax + 0x1f8], ebx
je 0x40351d
lea ecx, [esp + 0x10]
push ecx
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.00413ec0
add esp, 8
test eax, eax
je 0x403471
mov edi, eax
mov dword [esp + 0xc], 1
jmp 0x40347a
xor ebx, ebx
cmp dword [esp + 0x10], ebx
setne bl
push esi
call fcn.004e1280
push 0
push edi
push ebp
call fcn.0040b6a0
add esp, 0x10
test ebx, ebx
je 0x4034fe
test eax, eax
je 0x4034b2
cmp eax, 0x37
je 0x4034b2
mov edx, dword [esp + 0x10]
push edx
mov edi, eax
call dword [0x5b44c4]
mov ebx, dword [esp + 0x18]
add esp, 4
jmp case.0x402fd7.1
mov eax, dword [esp + 0x10]
mov edi, 2
push edi
push eax
push esi
call fcn.00413b80
add esp, 0xc
test eax, eax
jne 0x4034e5
cmp dword [esi + 0xc], edi
je 0x4034d2
mov dword [esi + 0xc], edi
mov dword [esp + 0x14], 0xffffffff
mov ebx, dword [esp + 0x14]
xor edi, edi
jmp case.0x402fd7.1
mov ecx, dword [esp + 0x10]
push ecx
mov edi, eax
call dword [0x5b44c4]
mov ebx, dword [esp + 0x18]
add esp, 4
jmp case.0x402fd7.1
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x10], 1
call dword [0x5b44c4]
mov ebx, dword [esp + 0x18]
add esp, 4
jmp case.0x402fd7.1
push esi
call fcn.004e1280
add esp, 4
cmp dword [ebp], ebx
je 0x403537
push 0
push edi
push ebp
call fcn.0040b6a0
add esp, 0xc
mov dword [esp + 0xc], 1
jmp case.0x402fd7.1
mov ecx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00406be0
mov edi, eax
add esp, 8
test edi, edi
jne 0x403584
cmp dword [esp + 0x1c], ebx
je case.0x402fd7.1
mov edx, dword [ebp]
mov eax, dword [edx + 0x214]
neg eax
sbb eax, eax
add eax, 0xc
mov ecx, esi
call fcn.00401ca0
or ebx, 0xffffffff
jmp case.0x402fd7.1
push esi
call fcn.004e1280
push 0
jmp 0x403305
mov ecx, dword [ebp]
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.00407ff0
mov edi, eax
add esp, 8
test edi, edi
jne 0x403584
mov eax, dword [esp + 0x30]
test eax, eax
je 0x403415
xor edx, edx
cmp eax, 1
sete dl
mov ecx, esi
lea eax, [edx + edx + 0xa]
call fcn.00401ca0
or ebx, 0xffffffff
jmp case.0x402fd7.1
mov eax, dword [ebp]
push eax
push esi
call fcn.00414610
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00402aa0
mov eax, dword [ebp]
or ecx, 0xffffffff
add esp, 0xc
cmp dword [eax + 0x274], ecx
jne 0x4035ff
cmp dword [eax + 0x278], ecx
lea eax, [ecx + 0x11]
je 0x403604
mov eax, 0xd
cmp dword [esi + 0xc], eax
je 0x403361
mov dword [esi + 0xc], eax
or ebx, 0xffffffff
jmp case.0x402fd7.1
mov edx, dword [ebp]
push edx
push esi
call fcn.00414540
add esp, 8
test eax, eax
je case.0x402fd7.1
mov eax, 0xe
cmp dword [esi + 0xc], eax
je 0x403361
mov dword [esi + 0xc], eax
or ebx, 0xffffffff
jmp case.0x402fd7.1
mov eax, dword [ebp]
push eax
call fcn.00415210
add esp, 4
test eax, eax
je 0x40365d
mov edi, 0x2a
jmp 0x403672
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push edx
push esi
call fcn.00414b60
add esp, 0xc
mov edi, eax
mov ecx, dword [esi + 0x208]
mov eax, dword [esi + 0x20c]
mov edx, ecx
or edx, eax
je 0x40369e
cmp dword [esi + 0x50c], eax
jg case.0x402fd7.1
jl 0x40369e
cmp dword [esi + 0x508], ecx
jae case.0x402fd7.1
mov ecx, dword [esi + 0x210]
mov eax, dword [esi + 0x214]
mov edx, ecx
or edx, eax
je 0x4036ca
cmp dword [esi + 0x504], eax
jg case.0x402fd7.1
jl 0x4036ca
cmp dword [esi + 0x500], ecx
jae case.0x402fd7.1
cmp dword [esi + 0xc], 0xe
je case.0x402fd7.1
mov dword [esi + 0xc], 0xe
jmp case.0x402fd7.1
mov eax, dword [esi + 0x20c]
mov ebx, dword [esi + 0x208]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ecx
cmp eax, ecx
jl 0x40374f
jg 0x403700
cmp ebx, ecx
jbe 0x40374f
mov edx, dword [esi + 0x50c]
mov ecx, dword [esi + 0x508]
cmp edx, eax
jl 0x40374f
jg 0x403716
cmp ecx, ebx
jbe 0x40374f
mov ecx, dword [esi + 0x2c0]
mov dword [esi + 0xc], 0xf
test ecx, ecx
jne 0x40372c
mov ecx, 0x4000
push ecx
mov ecx, dword [esi + 0x508]
push edx
push ecx
push eax
push ebx
call fcn.00413720
push eax
push esi
call fcn.00402970
mov ebx, dword [esp + 0x30]
add esp, 0x1c
jmp case.0x402fd7.1
mov eax, dword [esi + 0x214]
mov ecx, dword [esi + 0x210]
test eax, eax
jl 0x40379e
jg 0x403765
test ecx, ecx
je 0x40379e
mov edx, dword [esi + 0x504]
mov ebx, dword [esi + 0x500]
cmp edx, eax
jl 0x40379e
jg 0x40377b
cmp ebx, ecx
jbe 0x40379e
mov ecx, dword [esi + 0x2c0]
mov dword [esi + 0xc], 0xf
test ecx, ecx
jne 0x403791
mov ecx, 0x4000
push ecx
push edx
push ebx
push eax
mov eax, dword [esi + 0x210]
push eax
jmp 0x403737
mov edx, dword [ebp]
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
call fcn.00413360
add esp, 0xc
test byte [esi + 0xf8], 1
mov edi, eax
jne 0x4037c7
mov eax, dword [ebp]
push eax
call fcn.004145a0
add esp, 4
test byte [esi + 0xf8], 2
jne 0x4037dc
mov ecx, dword [ebp]
push ecx
call fcn.00414590
add esp, 4
cmp dword [esp + 0x20], 0
jne 0x4037e8
cmp edi, 0x38
jne 0x403816
mov eax, dword [ebp]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00413ec0
add esp, 8
test eax, eax
jne 0x403816
xor ebx, ebx
cmp dword [esp + 0x10], ebx
setne bl
test ebx, ebx
je 0x40381a
xor edi, edi
mov dword [esp + 0x20], 1
jmp 0x40386b
mov ebx, dword [esp + 0x24]
test edi, edi
je 0x403860
mov eax, dword [ebp]
mov ecx, dword [eax + 0x268]
test byte [ecx + 0x40], 2
jne 0x403837
mov dword [eax + 0x1f4], 1
push esi
call fcn.004e1280
push 0
push edi
push ebp
call fcn.0040b6a0
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
call dword [0x5b44c4]
mov ebx, dword [esp + 0x18]
add esp, 4
jmp case.0x402fd7.1
cmp dword [esp + 0x20], 0
je 0x403980
push esi
call fcn.004e1280
mov edx, dword [ebp]
mov eax, dword [edx + 0x2b0]
push eax
push esi
call fcn.00406860
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x2b0]
add esp, 0xc
cmp dword [eax], 0
je 0x4038a1
mov edx, dword [eax]
mov eax, dword [edx]
push 1
push eax
call fcn.00402970
add esp, 8
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00402aa0
add esp, 4
cmp dword [esi + 0x10c], 0
jne 0x40390d
test ebx, ebx
jne 0x403936
cmp dword [esi + 0x108], ebx
je 0x4038fe
mov edx, dword [esp + 0x10]
push edx
call dword [0x5b44c4]
mov eax, dword [esi + 0x108]
push 1
push eax
push esi
mov dword [esp + 0x20], eax
mov dword [esi + 0x108], ebx
call fcn.00413b80
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x4038f6
mov dword [esp + 0x10], ebx
jmp 0x4038fe
mov dword [esp + 0xc], 1
mov eax, 0x10
cmp dword [esi + 0xc], eax
je 0x403978
mov dword [esi + 0xc], eax
jmp 0x403978
test ebx, ebx
jne 0x403936
mov eax, dword [esp + 0x10]
push eax
call dword [0x5b44c4]
mov ecx, dword [esi + 0x10c]
mov dword [esi + 0x10c], ebx
add esp, 4
mov dword [esp + 0x10], ecx
mov ebx, 3
jmp 0x40393b
mov ebx, 2
push 0
push 0
push ebp
call fcn.0040b6a0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x403980
mov edx, dword [esp + 0x10]
push ebx
push edx
push esi
call fcn.00413b80
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x403980
mov eax, 2
cmp dword [esi + 0xc], eax
je 0x403970
mov dword [esi + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x10]
push eax
call dword [0x5b44c4]
mov ebx, dword [esp + 0x18]
add esp, 4
jmp case.0x402fd7.1
mov eax, dword [ebp]
or ebx, 0xffffffff
test eax, eax
je 0x4039d7
mov ecx, dword [eax + 0x2b0]
push ecx
push esi
call fcn.00406860
mov edx, dword [esp + 0x40]
push edx
call fcn.00402aa0
push 0
push edi
push ebp
call fcn.0040b6a0
add esp, 0x18
test edi, edi
jne 0x4039ca
mov edi, eax
cmp dword [ebp], 0
je 0x4039d7
mov dword [ebp], 0
cmp dword [esi + 0x458], 0
je 0x4039f8
cmp dword [esi + 0x8718], 6
je 0x4039f8
cmp dword [esi + 0xc], 0
je case.0x402fd7.1
mov dword [esi + 0xc], 0
jmp case.0x402fd7.1
cmp dword [esi + 0xc], 0x11
je 0x403b19
mov eax, dword [esi + 0x40]
mov dword [esi + 0xc], 0x11
dec dword [eax + 0x10]
jmp case.0x402fd7.1
push 0
push esi
mov dword [ebp], ebx
call fcn.004027d0
add esp, 8
cmp dword [esi + 0xc], 0x11
jge 0x403b17
test edi, edi
je 0x403aca
mov eax, dword [esp + 0x38]
push eax
mov dword [esi + 0x86d0], 0
call fcn.00402aa0
mov eax, dword [ebp]
add esp, 4
test eax, eax
je 0x403aa6
push eax
call fcn.00414590
mov ecx, dword [ebp]
push ecx
call fcn.004145a0
mov edx, dword [ebp]
mov eax, dword [edx + 0x2ac]
push eax
push esi
call fcn.00406860
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x2b0]
push edx
push esi
call fcn.00406860
add esp, 0x18
cmp dword [esp + 0xc], 0
je 0x403ab5
mov ecx, dword [ebp]
xor eax, eax
cmp edi, 0x1c
sete al
push eax
push ecx
call fcn.0040a900
add esp, 8
mov dword [ebp], 0
jmp 0x403ab5
cmp dword [esi + 0xc], 2
jne 0x403ab5
push esi
call fcn.004e1280
add esp, 4
cmp dword [esi + 0xc], 0x11
je 0x403b19
mov eax, dword [esi + 0x40]
mov dword [esi + 0xc], 0x11
dec dword [eax + 0x10]
jmp 0x403b13
mov eax, dword [ebp]
test eax, eax
je 0x403b13
push eax
call fcn.00415210
add esp, 4
test eax, eax
je 0x403b13
mov edx, dword [ebp]
xor ecx, ecx
mov dword [edx + 0x1f4], 1
mov eax, dword [esi + 0xc]
cmp eax, 0x10
setge cl
mov edi, 0x2a
add ecx, 0x10
cmp eax, ecx
je 0x403b10
mov dword [esi + 0xc], ecx
cmp ecx, 0x11
jne 0x403b10
mov eax, dword [esi + 0x40]
dec dword [eax + 0x10]
or ebx, 0xffffffff
cmp dword [esi + 0xc], 0x11
jne 0x403b56
mov ecx, dword [esp + 0x38]
lea eax, [esi + 0x14]
mov dword [eax], 1
mov dword [eax + 4], esi
mov dword [eax + 8], edi
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx + 4]
push eax
push edx
push ecx
call fcn.00411e90
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffd
add ebx, 3
cmp dword [esi + 0xc], 0x12
je 0x403b56
mov dword [esi + 0xc], 0x12
xor ebp, ebp
cmp ebx, 0xffffffff
je 0x402de0
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x64], ebp
jne 0x402de0
mov eax, ebx
pop ebx
mov dword [esi + 0x10], edi
pop edi
pop ebp
add esp, 0x28
ret
mov ecx, dword [esi + 0xc]
push ecx
push str.In_state__d_with_no_easy_conn__bail_out__n
push esi
call fcn.0040cc30
add esp, 0xc
pop ebx
pop edi
mov eax, 4
pop ebp
add esp, 0x28
ret
pop ebx
mov dword [esi + 0x10], edi
pop edi
xor eax, eax
pop ebp
add esp, 0x28
ret
pop edi
mov eax, 2
pop ebp
add esp, 0x28
ret