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

Disassembly:
sub esp, 0x24
push ebx
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
cmp esi, ebx
je 0x40bfa2
cmp dword [esi + 0x885c], 0xc0dedbad
jne 0x40bfa2
push ebp
mov edi, edi
xor ebp, ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebp
cmp dword [esi + 0x8738], ebx
je 0x40b17e
mov eax, dword [esi + 0x8740]
push eax
push esi
push str.Pipe_broke:_handle__p__url___s_n
push esi
call fcn.0040c580
mov eax, dword [esi + 0xc]
add esp, 0x10
cmp eax, 0x11
jge 0x40b170
cmp eax, 2
je 0x40b16b
mov dword [esi + 0xc], 2
mov eax, dword [0x56ca68]
cmp eax, ebx
je 0x40b16b
push esi
call eax
add esp, 4
or ebp, 0xffffffff
xor edi, edi
mov dword [esi + 0x8738], ebx
mov dword [esi + 8], ebx
jmp 0x40bf54
cmp dword [esi + 8], ebp
lea ebx, [esi + 8]
jne 0x40b197
mov eax, dword [esi + 0xc]
cmp eax, 2
jle 0x40b197
cmp eax, 0x10
jl 0x40bf78
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x64]
mov dword [ecx + 0x64], ebp
test eax, eax
je 0x40b1ae
push ecx
call fcn.0040ab40
add esp, 4
mov ecx, dword [ebx]
test ecx, ecx
je 0x40b1c3
mov eax, dword [esi + 0xc]
cmp eax, 2
jle 0x40b1c3
cmp eax, 0x11
jge 0x40b1c3
mov dword [ecx], esi
cmp dword [ebx], ebp
je 0x40b317
mov eax, dword [esi + 0xc]
cmp eax, 2
jl 0x40b317
cmp eax, 0x11
jge 0x40b317
xor edx, edx
cmp eax, 8
setle dl
lea eax, [esp + 0x38]
push edx
push eax
push esi
call fcn.0040e660
add esp, 0xc
test eax, eax
jns 0x40b317
mov eax, dword [esi + 0xc]
cmp eax, 3
jne 0x40b238
mov ecx, dword [esi + 0x56c]
mov edx, dword [esi + 0x568]
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
call fcn.0040c150
push eax
push str.Resolving_timed_out_after__ld_milliseconds
push esi
call fcn.0040c610
add esp, 0x1c
jmp 0x40b2ea
cmp eax, 4
jne 0x40b26b
mov edx, dword [esi + 0x56c]
mov eax, dword [esi + 0x568]
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
call fcn.0040c150
push eax
push str.Connection_timed_out_after__ld_milliseconds
push esi
call fcn.0040c610
add esp, 0x1c
jmp 0x40b2ea
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
mov edx, dword [esi + 0x56c]
je 0x40b2b9
push ecx
mov ecx, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0x74]
push eax
mov eax, dword [esi + 0x568]
push ecx
mov ecx, dword [esi + 0x94]
push edx
mov edx, dword [esi + 0x90]
push eax
push ecx
push edx
call fcn.0040c150
add esp, 0x10
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_out_of__I64d_bytes_received
push esi
call fcn.0040c610
add esp, 0x1c
jmp 0x40b2ea
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0x568]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
call fcn.0040c150
add esp, 0x10
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_bytes_received
push esi
call fcn.0040c610
add esp, 0x14
cmp dword [esi + 0xc], 9
jle 0x40b301
mov ecx, dword [ebx]
mov eax, 1
mov dword [ecx + 0x26c], eax
mov dword [esp + 0xc], eax
push 1
mov edi, 0x1c
push edi
push ebx
call fcn.00408b80
add esp, 0xc
jmp case.0x40b323.1
mov eax, dword [esi + 0xc]
cmp eax, 0x12
ja case.default.0x40b323
jmp dword [eax*4 + 0x40bfb0]
push esi
call fcn.0042d740
mov edi, eax
add esp, 4
test edi, edi
jne case.0x40b323.1
mov eax, 2
cmp dword [esi + 0xc], eax
je 0x40b359
mov dword [esi + 0xc], eax
mov eax, dword [0x56ca68]
test eax, eax
je 0x40b359
push esi
call eax
add esp, 4
push 1
push esi
call fcn.00414960
add esp, 8
or ebp, 0xffffffff
jmp case.0x40b323.1
push 2
push esi
call fcn.00414960
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push ebx
push esi
call fcn.00409b70
mov edi, eax
add esp, 0x18
cmp edi, 0x59
jne 0x40b3c2
mov eax, 1
cmp dword [esi + 0xc], eax
je 0x40b39c
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x18]
mov edx, dword [eax + 4]
push esi
push edx
push eax
call fcn.00429d30
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xffffffe5
add edi, 0x1b
jmp case.0x40b323.1
test edi, edi
jne case.0x40b323.1
mov eax, dword [ebx]
push eax
push esi
call fcn.0042a480
mov edi, eax
add esp, 8
test edi, edi
jne 0x40b68f
cmp dword [esp + 0x24], ebp
je 0x40b40f
cmp dword [esi + 0xc], 3
je case.0x40b323.1
mov dword [esi + 0xc], 3
mov eax, dword [0x56ca6c]
test eax, eax
je case.0x40b323.1
push esi
call eax
add esp, 4
jmp case.0x40b323.1
or ebp, 0xffffffff
cmp dword [esp + 0x18], 0
je 0x40b43b
mov ecx, dword [esp + 0x34]
push 1
push ecx
call fcn.00409da0
add esp, 8
neg eax
sbb eax, eax
add eax, 9
mov ecx, esi
call fcn.00409c10
jmp case.0x40b323.1
mov edx, dword [ebx]
cmp dword [edx + 0x5d0], 1
jne 0x40b46f
cmp dword [esi + 0xc], 5
je case.0x40b323.1
mov dword [esi + 0xc], 5
mov eax, dword [0x56ca74]
test eax, eax
je case.0x40b323.1
push esi
call eax
add esp, 4
jmp case.0x40b323.1
cmp dword [esi + 0xc], 4
je case.0x40b323.1
mov dword [esi + 0xc], 4
mov eax, dword [0x56ca70]
test eax, eax
je case.0x40b323.1
push esi
call eax
add esp, 4
jmp case.0x40b323.1
mov edi, dword [ebx]
mov dword [esp + 0x14], ebp
mov eax, dword [edi + 0xb0]
mov ecx, dword [edi + 0x98]
push eax
push ecx
push edi
call fcn.00402f90
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x40b4e3
push str.Hostname_was_found_in_DNS_cache_n
mov dword [edi + 0x4f4], eax
mov dword [edi + 0x4f8], 1
push esi
xor edi, edi
call fcn.0040c580
add esp, 8
cmp dword [esp + 0x14], edi
jne 0x40b4f5
mov eax, dword [ebx]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004020e0
add esp, 8
mov edi, eax
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, esi
call fcn.0040a0a0
add esp, 4
cmp dword [esp + 0x14], ebp
je 0x40b526
mov eax, dword [ebx]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00410170
mov edi, eax
add esp, 8
test edi, edi
je 0x40b40f
mov dword [ebx], ebp
test edi, edi
je case.0x40b323.1
mov dword [esp + 0xc], 1
jmp case.0x40b323.1
mov ecx, dword [ebx]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.004272f0
mov edi, eax
mov eax, dword [ebx]
add esp, 8
or ebp, 0xffffffff
cmp dword [eax + 0x2c0], 0
je 0x40b591
xor edi, edi
push edi
push edi
push ebx
call fcn.00408b80
add esp, 0xc
cmp dword [esi + 0xc], 2
je case.0x40b323.1
mov dword [esi + 0xc], 2
mov eax, dword [0x56ca68]
test eax, eax
je case.0x40b323.1
push esi
call eax
add esp, 4
jmp case.0x40b323.1
test edi, edi
jne case.0x40b323.1
cmp dword [eax + 0x5d0], 2
jne case.0x40b323.1
cmp dword [esi + 0xc], 6
je case.0x40b323.1
mov dword [esi + 0xc], 6
mov eax, dword [0x56ca78]
test eax, eax
je case.0x40b323.1
push esi
call eax
add esp, 4
jmp case.0x40b323.1
mov eax, dword [ebx]
lea edx, [esp + 0x28]
push edx
push 0
push eax
call fcn.0040f7a0
add esp, 0xc
mov edi, eax
cmp dword [esp + 0x28], ebp
je 0x40b526
test edi, edi
jne 0x40b52e
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x2a0]
or ebp, 0xffffffff
neg eax
sbb eax, eax
add eax, 6
mov ecx, esi
call fcn.00409c10
jmp case.0x40b323.1
mov eax, dword [ebx]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00403fe0
add esp, 8
mov edi, eax
cmp dword [esp + 0x18], ebp
jne 0x40b654
cmp dword [esi + 0xc], 7
je case.0x40b323.1
mov dword [esi + 0xc], 7
mov eax, dword [0x56ca7c]
test eax, eax
je case.0x40b323.1
push esi
call eax
add esp, 4
jmp case.0x40b323.1
test edi, edi
jne 0x40b67d
mov ecx, dword [esp + 0x34]
push 1
push ecx
call fcn.00409da0
add esp, 8
neg eax
sbb eax, eax
add eax, 9
mov ecx, esi
call fcn.00409c10
or ebp, 0xffffffff
jmp case.0x40b323.1
push esi
call fcn.004375f0
push 1
push edi
push ebx
call fcn.00408b80
add esp, 0x10
mov dword [esp + 0xc], 1
jmp case.0x40b323.1
mov eax, dword [ebx]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00403f60
mov edi, eax
add esp, 8
test edi, edi
jne 0x40b67d
cmp dword [esp + 0x18], ebp
je case.0x40b323.1
jmp 0x40b658
mov edx, dword [ebx]
push edx
push esi
call fcn.0042a3c0
add esp, 8
test eax, eax
je case.0x40b323.1
mov eax, 9
cmp dword [esi + 0xc], eax
je 0x40b6ee
mov dword [esi + 0xc], eax
mov eax, dword [0x56ca84]
test eax, eax
je 0x40b6ee
push esi
call eax
add esp, 4
or ebp, 0xffffffff
jmp case.0x40b323.1
cmp dword [esi + 0x370], ebp
je 0x40b72c
mov eax, dword [ebx]
mov dword [eax + 0x26c], ebp
mov eax, 0x10
cmp dword [esi + 0xc], eax
je 0x40b722
mov dword [esi + 0xc], eax
mov eax, dword [0x56caa0]
test eax, eax
je 0x40b722
push esi
call eax
add esp, 4
xor edi, edi
or ebp, 0xffffffff
jmp case.0x40b323.1
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.004053a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x40b7e6
cmp dword [esp + 0x1c], ebp
jne 0x40b79e
cmp dword [esi + 0x46c], ebp
je 0x40b78a
mov eax, dword [esi + 0x8798]
cmp eax, 6
je 0x40b762
cmp eax, 4
jne 0x40b78a
push 0
push 0
push ebx
call fcn.00408b80
add esp, 0xc
mov eax, 0x10
cmp dword [esi + 0xc], eax
je 0x40b6ee
mov dword [esi + 0xc], eax
mov eax, dword [0x56caa0]
jmp 0x40b6e4
mov eax, 0xa
cmp dword [esi + 0xc], eax
je 0x40b7c4
mov dword [esi + 0xc], eax
mov eax, dword [0x56ca88]
jmp 0x40b7ba
mov edx, dword [ebx]
cmp dword [edx + 0x28c], ebp
je 0x40b7cb
mov eax, 0xb
cmp dword [esi + 0xc], eax
je 0x40b7c4
mov dword [esi + 0xc], eax
mov eax, dword [0x56ca8c]
test eax, eax
je 0x40b7c4
push esi
call eax
add esp, 4
xor ebp, ebp
jmp case.0x40b323.1
mov eax, 0xc
cmp dword [esi + 0xc], eax
je 0x40b6ee
mov dword [esi + 0xc], eax
mov eax, dword [0x56ca90]
jmp 0x40b6e4
cmp edi, 0x37
jne 0x40b8ba
mov eax, dword [ebx]
cmp dword [eax + 0x270], ebp
je 0x40b8ba
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push eax
mov dword [esp + 0x18], ebp
call fcn.0042de30
add esp, 8
test eax, eax
je 0x40b821
mov edi, eax
mov dword [esp + 0xc], 1
jmp 0x40b82c
xor edx, edx
cmp dword [esp + 0x10], edx
setne dl
mov ebp, edx
push esi
call fcn.004375f0
push 0
push edi
push ebx
call fcn.00408b80
add esp, 0x10
test ebp, ebp
je 0x40b8ad
test eax, eax
je 0x40b852
cmp eax, 0x37
je 0x40b852
mov edi, eax
jmp 0x40bd6a
mov ecx, dword [esp + 0x10]
mov edi, 2
push edi
push ecx
push esi
call fcn.0042daf0
add esp, 0xc
test eax, eax
jne 0x40b894
cmp dword [esi + 0xc], edi
je 0x40b881
mov dword [esi + 0xc], edi
mov eax, dword [0x56ca68]
test eax, eax
je 0x40b881
push esi
call eax
add esp, 4
mov dword [esp + 0x14], 0xffffffff
mov ebp, dword [esp + 0x14]
xor edi, edi
jmp case.0x40b323.1
mov edx, dword [esp + 0x10]
push edx
mov edi, eax
call dword [0x5c74d4]
mov ebp, dword [esp + 0x18]
add esp, 4
jmp case.0x40b323.1
mov dword [esp + 0xc], 1
jmp 0x40bd6a
push esi
call fcn.004375f0
add esp, 4
cmp dword [ebx], ebp
je 0x40b8d3
push 0
push edi
push ebx
call fcn.00408b80
add esp, 0xc
mov dword [esp + 0xc], 1
jmp case.0x40b323.1
mov edx, dword [ebx]
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.00403fa0
mov edi, eax
add esp, 8
test edi, edi
jne 0x40b91e
cmp dword [esp + 0x1c], ebp
je case.0x40b323.1
mov eax, dword [ebx]
mov eax, dword [eax + 0x28c]
neg eax
sbb eax, eax
add eax, 0xc
mov ecx, esi
call fcn.00409c10
or ebp, 0xffffffff
jmp case.0x40b323.1
push esi
call fcn.004375f0
push 0
jmp 0x40b685
mov edx, dword [ebx]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.00405430
mov edi, eax
add esp, 8
test edi, edi
jne 0x40b91e
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40b7c4
xor ecx, ecx
cmp eax, 1
sete cl
lea eax, [ecx + ecx + 0xa]
mov ecx, esi
call fcn.00409c10
or ebp, 0xffffffff
jmp case.0x40b323.1
mov edx, dword [ebx]
push edx
push esi
call fcn.0042a4e0
mov eax, dword [esp + 0x3c]
push eax
call fcn.0040ab40
mov eax, dword [ebx]
or ecx, 0xffffffff
add esp, 0xc
cmp dword [eax + 0x2ec], ecx
jne 0x40b997
cmp dword [eax + 0x2f0], ecx
je 0x40b76f
mov eax, 0xd
cmp dword [esi + 0xc], eax
je 0x40b6ee
mov dword [esi + 0xc], eax
mov eax, dword [0x56ca94]
jmp 0x40b6e4
mov ecx, dword [ebx]
push ecx
push esi
call fcn.0042a410
add esp, 8
test eax, eax
je case.0x40b323.1
mov eax, 0xe
cmp dword [esi + 0xc], eax
je 0x40b6ee
mov dword [esi + 0xc], eax
mov eax, dword [0x56ca98]
jmp 0x40b6e4
mov edx, dword [ebx]
push edx
call fcn.00414bd0
add esp, 4
test eax, eax
je 0x40b9f7
mov edi, 0x2a
jmp 0x40ba0c
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push esi
call fcn.0042c370
add esp, 0xc
mov edi, eax
mov ecx, dword [esi + 0x208]
mov eax, dword [esi + 0x20c]
mov edx, ecx
or edx, eax
je 0x40ba38
cmp dword [esi + 0x52c], eax
jg case.0x40b323.1
jl 0x40ba38
cmp dword [esi + 0x528], ecx
jae case.0x40b323.1
mov ecx, dword [esi + 0x210]
mov eax, dword [esi + 0x214]
mov edx, ecx
or edx, eax
je 0x40ba64
cmp dword [esi + 0x524], eax
jg case.0x40b323.1
jl 0x40ba64
cmp dword [esi + 0x520], ecx
jae case.0x40b323.1
cmp dword [esi + 0xc], 0xe
je case.0x40b323.1
mov dword [esi + 0xc], 0xe
mov eax, dword [0x56ca98]
test eax, eax
je case.0x40b323.1
push esi
call eax
add esp, 4
jmp case.0x40b323.1
mov eax, dword [esi + 0x20c]
mov ecx, dword [esi + 0x208]
xor ebp, ebp
mov dword [esp + 0x10], ebp
cmp eax, ebp
jl 0x40bb11
jg 0x40baa9
cmp ecx, ebp
jbe 0x40bb11
cmp dword [esi + 0x52c], eax
jl 0x40bb11
jg 0x40babb
cmp dword [esi + 0x528], ecx
jbe 0x40bb11
mov dword [esi + 0xc], 0xf
mov eax, dword [0x56ca9c]
test eax, eax
je 0x40bad1
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x2c0]
test eax, eax
jne 0x40bae0
mov eax, 0x4000
mov ecx, dword [esi + 0x52c]
mov edx, dword [esi + 0x528]
push eax
mov eax, dword [esi + 0x20c]
push ecx
mov ecx, dword [esi + 0x208]
push edx
push eax
push ecx
call fcn.0042d650
push eax
push esi
call fcn.0040aa10
add esp, 0x1c
jmp case.0x40b323.1
mov eax, dword [esi + 0x214]
mov ecx, dword [esi + 0x210]
test eax, eax
jl 0x40bb7a
jg 0x40bb27
test ecx, ecx
je 0x40bb7a
cmp dword [esi + 0x524], eax
jl 0x40bb7a
jg 0x40bb39
cmp dword [esi + 0x520], ecx
jbe 0x40bb7a
mov dword [esi + 0xc], 0xf
mov eax, dword [0x56ca9c]
test eax, eax
je 0x40bb4f
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x2c0]
test eax, eax
jne 0x40bb5e
mov eax, 0x4000
mov ecx, dword [esi + 0x524]
mov edx, dword [esi + 0x520]
push eax
mov eax, dword [esi + 0x214]
push ecx
mov ecx, dword [esi + 0x210]
jmp 0x40bafa
mov eax, dword [ebx]
lea edx, [esp + 0x20]
push edx
push esi
push eax
call fcn.0042d290
add esp, 0xc
test byte [esi + 0xf8], 1
mov edi, eax
jne 0x40bba1
mov ecx, dword [ebx]
push ecx
call fcn.0042a470
add esp, 4
test byte [esi + 0xf8], 2
jne 0x40bbb5
mov edx, dword [ebx]
push edx
call fcn.0042a460
add esp, 4
cmp dword [esp + 0x20], ebp
jne 0x40bbc0
cmp edi, 0x38
jne 0x40bbef
mov ecx, dword [ebx]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.0042de30
add esp, 8
test eax, eax
jne 0x40bbef
xor edx, edx
cmp dword [esp + 0x10], edx
setne dl
mov ebp, edx
test ebp, ebp
je 0x40bbef
xor edi, edi
mov dword [esp + 0x20], 1
jmp 0x40bc2d
test edi, edi
je 0x40bc22
mov eax, dword [ebx]
mov ecx, dword [eax + 0x2e0]
test byte [ecx + 0x40], 2
jne 0x40bc0b
mov dword [eax + 0x26c], 1
push esi
call fcn.004375f0
push 0
push edi
push ebx
call fcn.00408b80
add esp, 0x10
jmp 0x40bd6a
cmp dword [esp + 0x20], 0
je 0x40bd6a
push esi
call fcn.004375f0
mov edx, dword [ebx]
mov eax, dword [edx + 0x35c]
push eax
push esi
call fcn.00403c20
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x35c]
add esp, 0xc
cmp dword [eax], 0
je 0x40bc61
mov edx, dword [eax]
mov eax, dword [edx]
push 1
push eax
call fcn.0040aa10
add esp, 8
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0040ab40
add esp, 4
cmp dword [esi + 0x10c], 0
jne 0x40bce8
test ebp, ebp
jne 0x40bd11
cmp dword [esi + 0x108], ebp
je 0x40bcc2
mov edx, dword [esp + 0x10]
push edx
call dword [0x5c74d4]
mov eax, dword [esi + 0x108]
push 1
push eax
push esi
mov dword [esp + 0x20], eax
mov dword [esi + 0x108], ebp
call fcn.0042daf0
mov edi, eax
add esp, 0x10
cmp edi, ebp
jne 0x40bcba
mov dword [esp + 0x10], ebp
jmp 0x40bcc2
mov dword [esp + 0xc], 1
mov eax, 0x10
cmp dword [esi + 0xc], eax
je 0x40bd62
mov dword [esi + 0xc], eax
mov eax, dword [0x56caa0]
test eax, eax
je 0x40bd62
push esi
call eax
add esp, 4
jmp 0x40bd62
test ebp, ebp
jne 0x40bd11
mov eax, dword [esp + 0x10]
push eax
call dword [0x5c74d4]
mov ecx, dword [esi + 0x10c]
mov dword [esi + 0x10c], ebp
add esp, 4
mov dword [esp + 0x10], ecx
mov ebp, 3
jmp 0x40bd16
mov ebp, 2
push 0
push 0
push ebx
call fcn.00408b80
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40bd6a
mov edx, dword [esp + 0x10]
push ebp
push edx
push esi
call fcn.0042daf0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40bd6a
mov eax, 2
cmp dword [esi + 0xc], eax
je 0x40bd5a
mov dword [esi + 0xc], eax
mov eax, dword [0x56ca68]
test eax, eax
je 0x40bd5a
push esi
call eax
add esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x10]
push eax
call dword [0x5c74d4]
mov ebp, dword [esp + 0x18]
add esp, 4
jmp case.0x40b323.1
mov eax, dword [ebx]
or ebp, 0xffffffff
test eax, eax
je 0x40bdbe
mov ecx, dword [eax + 0x35c]
push ecx
push esi
call fcn.00403c20
mov edx, dword [esp + 0x3c]
push edx
call fcn.0040ab40
push 0
push edi
push ebx
call fcn.00408b80
add esp, 0x18
test edi, edi
jne 0x40bdb3
mov edi, eax
cmp dword [ebx], 0
je 0x40bdbe
mov dword [ebx], 0
cmp dword [esi + 0x46c], 0
je 0x40bddf
cmp dword [esi + 0x8798], 6
je 0x40bddf
cmp dword [esi + 0xc], 0
je case.0x40b323.1
mov dword [esi + 0xc], 0
jmp case.0x40b323.1
cmp dword [esi + 0xc], 0x11
je 0x40bf08
mov eax, dword [esi + 0x40]
mov dword [esi + 0xc], 0x11
dec dword [eax + 0x10]
mov eax, dword [0x56caa4]
test eax, eax
je case.0x40b323.1
push esi
call eax
add esp, 4
jmp case.0x40b323.1
push 0
push esi
mov dword [ebx], ebp
call fcn.0040a870
add esp, 8
cmp dword [esi + 0xc], 0x11
jge 0x40bf06
test edi, edi
je 0x40bec8
mov eax, dword [esp + 0x34]
push eax
mov dword [esi + 0x8738], 0
call fcn.0040ab40
mov eax, dword [ebx]
add esp, 4
test eax, eax
je 0x40be95
push eax
call fcn.0042a460
mov ecx, dword [ebx]
push ecx
call fcn.0042a470
mov edx, dword [ebx]
mov eax, dword [edx + 0x358]
push eax
push esi
call fcn.00403c20
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x35c]
push edx
push esi
call fcn.00403c20
add esp, 0x18
cmp dword [esp + 0xc], 0
je 0x40bea4
mov ecx, dword [ebx]
xor eax, eax
cmp edi, 0x1c
sete al
push eax
push ecx
call fcn.00407d90
add esp, 8
mov dword [ebx], 0
jmp 0x40bea4
cmp dword [esi + 0xc], 2
jne 0x40bea4
push esi
call fcn.004375f0
add esp, 4
cmp dword [esi + 0xc], 0x11
je 0x40bf08
mov eax, dword [esi + 0x40]
mov dword [esi + 0xc], 0x11
dec dword [eax + 0x10]
mov eax, dword [0x56caa4]
test eax, eax
je 0x40bf02
push esi
call eax
add esp, 4
jmp 0x40bf02
mov eax, dword [ebx]
test eax, eax
je 0x40bf02
push eax
call fcn.00414bd0
add esp, 4
test eax, eax
je 0x40bf02
mov edx, dword [ebx]
xor eax, eax
mov dword [edx + 0x26c], 1
cmp dword [esi + 0xc], 0x10
mov ecx, esi
setge al
mov edi, 0x2a
add eax, 0x10
call fcn.00409c10
or ebp, 0xffffffff
cmp dword [esi + 0xc], 0x11
jne 0x40bf54
mov ecx, dword [esp + 0x34]
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.00429d30
add esp, 0xc
mov ebp, eax
neg ebp
sbb ebp, ebp
and ebp, 0xfffffffd
add ebp, 3
cmp dword [esi + 0xc], 0x12
je 0x40bf54
mov dword [esi + 0xc], 0x12
mov eax, dword [0x56caa8]
test eax, eax
je 0x40bf54
push esi
call eax
add esp, 4
xor ebx, ebx
cmp ebp, 0xffffffff
je 0x40b120
mov eax, dword [esp + 0x34]
cmp dword [eax + 0x64], ebx
jne 0x40b120
mov eax, ebp
pop ebp
mov dword [esi + 0x10], edi
pop edi
pop ebx
add esp, 0x24
ret
mov ecx, dword [esi + 0xc]
push ecx
push str.In_state__d_with_no_easy_conn__bail_out__n
push esi
call fcn.0040c610
add esp, 0xc
pop ebp
pop edi
mov eax, 4
pop ebx
add esp, 0x24
ret
pop ebp
mov dword [esi + 0x10], edi
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
pop edi
mov eax, 2
pop ebx
add esp, 0x24
ret