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

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x44]
push ebp
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
je 0x10037d62
cmp dword [esi + 0x4d48], 0xc0dedbad
jne 0x10037d62
xor ebp, ebp
cmp dword [esi + 0x4c0c], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
je 0x10036bc1
mov eax, dword [esi + 0x4c14]
push eax
push esi
push str.Pipe_broke:_handle__p__url___s_n
push esi
call fcn.100383e0
add esp, 0x10
cmp dword [esi + 0x24], 0x11
jge 0x10036bb1
lea eax, [ebp + 2]
mov ecx, esi
call fcn.100350a0
or ebp, 0xffffffff
xor edi, edi
xor eax, eax
mov dword [esi + 0x4c0c], eax
mov dword [esi + 8], eax
jmp 0x10037d0f
cmp dword [esi + 8], 0
lea ebp, [esi + 8]
jne 0x10036bdb
mov eax, dword [esi + 0x24]
cmp eax, 2
jle 0x10036bdb
cmp eax, 0x10
jl 0x10037d38
push 1
mov ecx, ebx
call fcn.100354a0
add esp, 4
test eax, eax
je 0x10036bf2
mov eax, ebx
call fcn.10036180
mov ecx, dword [ebp]
test ecx, ecx
je 0x10036c08
mov eax, dword [esi + 0x24]
cmp eax, 2
jle 0x10036c08
cmp eax, 0x11
jge 0x10036c08
mov dword [ecx], esi
cmp dword [ebp], 0
je 0x10036e53
mov eax, dword [esi + 0x24]
cmp eax, 2
jl 0x10036e53
cmp eax, 0x11
jge 0x10036e53
xor ecx, ecx
cmp eax, 8
setle cl
lea edx, [esp + 0x50]
push ecx
push edx
push esi
call fcn.1003cae0
add esp, 0xc
test edx, edx
jg 0x10036e53
jl 0x10036c50
test eax, eax
jae 0x10036e53
mov eax, dword [esi + 0x24]
cmp eax, 3
jne 0x10036cba
mov ecx, dword [esi + 0x808]
mov edx, dword [esi + 0x80c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x810]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x814]
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.1003fb40
push edx
push eax
push str.Resolving_timed_out_after__ld_milliseconds
push esi
call fcn.10038470
add esp, 0x30
jmp 0x10036e20
cmp eax, 4
jne 0x10036d21
mov ecx, dword [esi + 0x808]
mov edx, dword [esi + 0x80c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x810]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x814]
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.1003fb40
push edx
push eax
push str.Connection_timed_out_after__ld_milliseconds
push esi
call fcn.10038470
add esp, 0x30
jmp 0x10036e20
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x10036dac
mov edx, dword [esi + 0x808]
push ecx
mov ecx, dword [esi + 0x90]
push eax
mov eax, dword [esi + 0x94]
push eax
push ecx
mov ecx, dword [esi + 0x80c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esi + 0x810]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x814]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x88]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.1003fb40
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.10038470
add esp, 0x20
jmp 0x10036e20
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x808]
push edx
mov edx, dword [esi + 0x80c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x810]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x814]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x6c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x84]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.1003fb40
add esp, 0x20
push edx
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_bytes_received
push esi
call fcn.10038470
add esp, 0x18
cmp dword [esi + 0x24], 9
jle 0x10036e3c
mov eax, dword [ebp]
push 2
push eax
call fcn.1003d690
add esp, 8
mov dword [esp + 0x10], 1
mov edi, 0x1c
push 1
push ebp
mov ecx, edi
call fcn.10036370
add esp, 8
jmp case.0x10036e5f.1
mov eax, dword [esi + 0x24]
cmp eax, 0x12
ja case.default.0x10036e5f
jmp dword [eax*4 + 0x10037d70]
push esi
call fcn.10060620
mov edi, eax
add esp, 4
test edi, edi
jne case.0x10036e5f.1
lea eax, [edi + 2]
mov ecx, esi
call fcn.100350a0
push 1
push esi
call fcn.100459b0
add esp, 8
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10036e5f.1
push 2
push esi
call fcn.100459b0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x38]
push edx
push ebp
push esi
call fcn.10035010
mov edi, eax
add esp, 0x18
cmp edi, 0x59
jne 0x10036ee4
lea eax, [edi - 0x58]
mov ecx, esi
call fcn.100350a0
mov ecx, dword [ebx + 0x28]
lea eax, [esi + 0xc]
push eax
push esi
push ecx
add ebx, 0x24
push ebx
call fcn.1005b8e0
add esp, 0x10
xor edi, edi
jmp case.0x10036e5f.1
test edi, edi
jne case.0x10036e5f.1
mov edx, dword [ebp]
push edx
push esi
call fcn.1005bf70
mov edi, eax
add esp, 8
test edi, edi
jne 0x100371fa
cmp dword [esp + 0x2c], eax
je 0x10036f18
lea eax, [edi + 3]
mov ecx, esi
call fcn.100350a0
jmp case.0x10036e5f.1
cmp dword [esp + 0x14], 0
mov dword [esp + 0xc], 0xffffffff
je 0x10036f45
push 1
push ebx
call fcn.100352c0
add esp, 8
neg eax
sbb eax, eax
add eax, 9
mov ecx, esi
call fcn.100350a0
jmp case.0x10036e5f.1
mov eax, dword [ebp]
push eax
call fcn.1005d7b0
add esp, 4
test eax, eax
mov ecx, esi
je 0x10036f66
mov eax, 5
call fcn.100350a0
jmp case.0x10036e5f.1
mov eax, 4
call fcn.100350a0
jmp case.0x10036e5f.1
mov edi, dword [ebp]
mov dword [esp + 0x18], 0
cmp dword [edi + 0x2b4], 0
je 0x10036f91
mov ebx, dword [edi + 0xe4]
jmp 0x10036fa8
cmp dword [edi + 0x2a8], 0
je 0x10036fa2
mov ebx, dword [edi + 0xb4]
jmp 0x10036fa8
mov ebx, dword [edi + 0xa0]
mov ecx, dword [edi + 0xfc]
push ecx
push ebx
push edi
call fcn.1002f6c0
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
je 0x10036fe8
push ebx
push str.Hostname__s_was_found_in_DNS_cache_n
mov dword [edi + 0x500], eax
mov dword [edi + 0x504], 1
push esi
xor edi, edi
call fcn.100383e0
add esp, 0xc
cmp dword [esp + 0x18], edi
jne 0x10036ffb
mov eax, dword [ebp]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.1002dc80
add esp, 8
mov edi, eax
mov ebx, dword [esp + 0x4c]
push esi
push ebx
call fcn.10035590
add esp, 8
cmp dword [esp + 0x18], 0
je 0x10037074
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.10040d00
mov edi, eax
add esp, 8
test edi, edi
je 0x10037030
mov dword [ebp], 0
jmp 0x10037074
cmp dword [esp + 0x14], 0
mov dword [esp + 0xc], 0xffffffff
je 0x10037053
push 1
push ebx
call fcn.100352c0
add esp, 8
neg eax
sbb eax, eax
add eax, 9
jmp 0x1003706d
mov eax, dword [ebp]
push eax
call fcn.1005d7b0
add esp, 4
test eax, eax
mov eax, 5
jne 0x1003706d
mov eax, 4
mov ecx, esi
call fcn.100350a0
test edi, edi
je case.0x10036e5f.1
mov dword [esp + 0x10], 1
jmp case.0x10036e5f.1
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.1005b830
mov edi, eax
mov eax, dword [ebp]
add esp, 8
cmp dword [eax + 0x304], 0
je 0x100370cd
xor edi, edi
push edi
push ebp
xor ecx, ecx
mov dword [esp + 0x14], 0xffffffff
call fcn.10036370
add esp, 8
lea eax, [edi + 2]
mov ecx, esi
call fcn.100350a0
jmp case.0x10036e5f.1
test edi, edi
jne case.0x10036e5f.1
cmp dword [eax + 0xf0], 2
jne 0x100370ea
cmp dword [eax + 0x320], edi
je case.0x10036e5f.1
push eax
call fcn.1005d790
add esp, 4
test eax, eax
je case.0x10036e5f.1
mov eax, 6
mov ecx, esi
mov dword [esp + 0xc], 0xffffffff
call fcn.100350a0
jmp case.0x10036e5f.1
mov ecx, dword [ebp]
lea eax, [esp + 0x30]
push eax
push 0
push ecx
call fcn.1003dcb0
add esp, 0xc
cmp dword [esp + 0x30], 0
mov edi, eax
je 0x10037074
test edi, edi
jne 0x1003707c
mov eax, dword [ebp]
cmp dword [eax + 0xf0], 2
jne 0x10037150
cmp dword [eax + 0x320], edi
je 0x1003715d
push eax
call fcn.1005d7b0
add esp, 4
test eax, eax
je 0x1003716e
mov eax, 5
mov ecx, esi
call fcn.100350a0
jmp case.0x10036e5f.1
mov edx, dword [ebp]
mov eax, dword [edx + 0x2e0]
neg eax
sbb eax, eax
add eax, 6
mov ecx, esi
mov dword [esp + 0xc], 0xffffffff
call fcn.100350a0
jmp case.0x10036e5f.1
mov ecx, dword [ebp]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.10030c10
add esp, 8
cmp dword [esp + 0x14], 0
mov edi, eax
jne 0x100371bd
mov eax, 7
mov ecx, esi
call fcn.100350a0
jmp case.0x10036e5f.1
test edi, edi
jne 0x100371e7
push 1
push ebx
call fcn.100352c0
add esp, 8
neg eax
sbb eax, eax
add eax, 9
mov ecx, esi
call fcn.100350a0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10036e5f.1
push esi
call fcn.1004bcf0
push 1
push ebp
mov ecx, edi
call fcn.10036370
add esp, 0xc
mov dword [esp + 0x10], 1
jmp case.0x10036e5f.1
mov eax, dword [ebp]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.10030b90
mov edi, eax
add esp, 8
test edi, edi
jne 0x100371e7
cmp dword [esp + 0x14], eax
je case.0x10036e5f.1
push 1
push ebx
call fcn.100352c0
add esp, 8
neg eax
sbb eax, eax
add eax, 9
mov ecx, esi
call fcn.100350a0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10036e5f.1
mov ecx, dword [ebp]
push ecx
push esi
call fcn.1005beb0
add esp, 8
test eax, eax
je case.0x10036e5f.1
mov eax, 9
mov ecx, esi
call fcn.100350a0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10036e5f.1
cmp dword [esi + 0x5b8], 0
je 0x100372ae
mov edx, dword [ebp]
push 0
push edx
call fcn.1003d690
add esp, 8
mov eax, 0x10
mov ecx, esi
call fcn.100350a0
xor edi, edi
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10036e5f.1
lea eax, [esp + 0x1c]
push eax
mov ebx, ebp
call fcn.10036ab0
mov edi, eax
add esp, 4
test edi, edi
jne 0x10037358
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
jne 0x10037321
cmp dword [esi + 0x4c00], ebx
je 0x1003730c
mov eax, dword [esi + 0x4c68]
cmp eax, 7
je 0x100372e7
cmp eax, 5
jne 0x1003730c
push ebx
push ebp
xor ecx, ecx
call fcn.10036370
add esp, 8
mov eax, 0x10
mov ecx, esi
call fcn.100350a0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10036e5f.1
mov eax, 0xa
mov ecx, esi
call fcn.100350a0
mov dword [esp + 0xc], ebx
jmp case.0x10036e5f.1
mov ecx, dword [ebp]
cmp dword [ecx + 0x2cc], ebx
mov ecx, esi
je 0x10037341
mov eax, 0xb
call fcn.100350a0
mov dword [esp + 0xc], ebx
jmp case.0x10036e5f.1
mov eax, 0xc
call fcn.100350a0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10036e5f.1
cmp edi, 0x37
jne 0x10037422
mov eax, dword [ebp]
cmp dword [eax + 0x2a4], 0
je 0x10037422
lea edx, [esp + 0x18]
push edx
xor ebx, ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.10060e50
add esp, 8
test eax, eax
je 0x10037395
mov edi, eax
mov dword [esp + 0x10], 1
jmp 0x1003739e
xor ebx, ebx
cmp dword [esp + 0x18], ebx
setne bl
push esi
call fcn.1004bcf0
push 0
push ebp
mov ecx, edi
call fcn.10036370
add esp, 0xc
test ebx, ebx
je 0x1003740a
test eax, eax
je 0x100373d0
cmp eax, 0x37
je 0x100373d0
mov ecx, dword [esp + 0x18]
push ecx
mov edi, eax
call dword [0x101b9004]
jmp 0x10037be9
mov eax, dword [esp + 0x18]
push 2
push eax
push esi
call fcn.10060be0
add esp, 0xc
test eax, eax
jne 0x100373be
mov eax, 2
mov ecx, esi
call fcn.100350a0
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x10], 0xffffffff
xor edi, edi
call dword [0x101b9004]
jmp 0x10037be9
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x14], 1
call dword [0x101b9004]
jmp 0x10037be9
push esi
call fcn.1004bcf0
add esp, 4
cmp dword [ebp], 0
je 0x1003743e
push 0
push ebp
mov ecx, edi
call fcn.10036370
add esp, 8
mov dword [esp + 0x10], 1
jmp case.0x10036e5f.1
mov eax, dword [ebp]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.10030bd0
mov edi, eax
add esp, 8
test edi, edi
jne 0x10037490
cmp dword [esp + 0x1c], eax
je case.0x10036e5f.1
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x2cc]
neg eax
sbb eax, eax
add eax, 0xc
mov ecx, esi
call fcn.100350a0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10036e5f.1
push esi
call fcn.1004bcf0
push 0
jmp 0x100371ef
mov edi, dword [ebp]
lea ebx, [esp + 0x34]
call fcn.10035500
mov edi, eax
test edi, edi
jne 0x10037490
mov eax, dword [esp + 0x34]
test eax, eax
je 0x100374d9
xor edx, edx
cmp eax, 1
sete dl
mov ecx, esi
lea edx, [edx + edx + 0xa]
mov eax, edx
call fcn.100350a0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10036e5f.1
mov dword [esp + 0xc], 0
jmp case.0x10036e5f.1
mov eax, dword [ebp]
push eax
push esi
call fcn.1005bfc0
mov eax, dword [ebp]
add esp, 8
cmp dword [eax + 0x310], 0
jne 0x10037508
cmp dword [eax + 0x3a0], 0
je 0x1003750f
mov eax, ebx
call fcn.10036180
mov eax, dword [ebp]
or ecx, 0xffffffff
cmp dword [eax + 0x35c], ecx
jne 0x10037560
cmp dword [eax + 0x360], ecx
jne 0x10037560
cmp dword [esi + 0x4c00], 0
je 0x10037547
mov ecx, dword [eax + 0x350]
test dword [ecx + 0x44], 0x1000
jne 0x10037547
mov dword [esi + 0x4c68], 7
mov eax, 0x10
mov ecx, esi
call fcn.100350a0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10036e5f.1
mov eax, 0xd
mov ecx, esi
call fcn.100350a0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10036e5f.1
mov edx, dword [ebp]
push edx
push esi
call fcn.1005bf00
add esp, 8
test eax, eax
je case.0x10036e5f.1
mov eax, 0xe
mov ecx, esi
call fcn.100350a0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10036e5f.1
mov eax, dword [ebp]
push eax
call fcn.10045ef0
add esp, 4
test eax, eax
je 0x100375c1
mov edi, 0x2a
jmp case.0x10036e5f.1
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
push esi
mov dword [eax + 0xc], edx
call fcn.1005e800
mov edi, eax
add esp, 0x14
test edi, edi
jne case.0x10036e5f.1
mov ecx, dword [esi + 0x24c]
mov edx, dword [esi + 0x248]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
jl 0x10037694
jg 0x1003761c
cmp edx, ebx
jbe 0x10037694
mov ebx, dword [esp + 0x50]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x64]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x68]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x6c]
mov dword [eax + 0xc], ebx
mov ebx, dword [esi + 0x840]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esi + 0x844]
mov dword [eax + 4], ebx
mov ebx, dword [esi + 0x848]
mov dword [eax + 8], ebx
mov ebx, dword [esi + 0x84c]
push ecx
mov ecx, dword [esi + 0x850]
push edx
mov edx, dword [esi + 0x794]
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 0x854]
push eax
mov eax, dword [esi + 0x790]
push ecx
push edx
push eax
call fcn.10045bb0
mov ebx, eax
add esp, 0x38
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
xor edx, edx
xor eax, eax
cmp dword [esi + 0x254], edx
jl 0x1003772c
jg 0x100376b2
cmp dword [esi + 0x250], edx
jbe 0x1003772c
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x858]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0x85c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x860]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x864]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x868]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x254]
mov edx, dword [esi + 0x78c]
push eax
mov eax, dword [esi + 0x250]
push eax
mov eax, dword [esi + 0x86c]
push eax
mov eax, dword [esi + 0x788]
push ecx
push edx
push eax
call fcn.10045bb0
add esp, 0x38
mov ecx, ebx
or ecx, dword [esp + 0x3c]
jne 0x10037772
mov ecx, eax
or ecx, edx
jne 0x10037772
lea eax, [ecx + 0xe]
mov ecx, esi
call fcn.100350a0
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], edx
push esi
mov dword [eax + 0xc], ecx
call fcn.10045cd0
add esp, 0x14
jmp case.0x10036e5f.1
mov ecx, dword [esp + 0x3c]
cmp ecx, edx
jl 0x10037798
jg 0x10037786
cmp dword [esp + 0x38], eax
jb 0x10037798
mov ebx, dword [esp + 0x38]
push 9
push ecx
push ebx
push esi
call fcn.10035e70
add esp, 0x10
jmp case.0x10036e5f.1
push 9
push edx
push eax
push esi
call fcn.10035e70
add esp, 0x10
jmp case.0x10036e5f.1
mov ecx, dword [esi + 0x24c]
mov edx, dword [esi + 0x248]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
jl 0x10037850
jg 0x100377da
cmp edx, eax
jbe 0x10037850
mov ebx, dword [esp + 0x50]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x64]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x68]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x6c]
mov dword [eax + 0xc], ebx
mov ebx, dword [esi + 0x840]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esi + 0x844]
mov dword [eax + 4], ebx
mov ebx, dword [esi + 0x848]
push ecx
mov ecx, dword [esi + 0x794]
push edx
mov edx, dword [esi + 0x854]
mov dword [eax + 8], ebx
mov ebx, dword [esi + 0x84c]
push edx
mov edx, dword [esi + 0x790]
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 0x850]
push eax
push ecx
push edx
call fcn.10045bb0
add esp, 0x38
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov ecx, dword [esi + 0x254]
mov edx, dword [esi + 0x250]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x40], ebx
jl 0x100378e4
jg 0x10037870
cmp edx, ebx
jbe 0x100378e4
mov ebx, dword [esp + 0x50]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x64]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x68]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x6c]
mov dword [eax + 0xc], ebx
mov ebx, dword [esi + 0x858]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esi + 0x85c]
mov dword [eax + 4], ebx
mov ebx, dword [esi + 0x860]
mov dword [eax + 8], ebx
mov ebx, dword [esi + 0x864]
push ecx
mov ecx, dword [esi + 0x868]
push edx
mov edx, dword [esi + 0x78c]
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 0x86c]
push eax
mov eax, dword [esi + 0x788]
push ecx
push edx
push eax
call fcn.10045bb0
add esp, 0x38
mov dword [esp + 0x40], eax
mov ebx, edx
mov ecx, dword [esp + 0x38]
or ecx, dword [esp + 0x3c]
jne 0x10037ae0
mov edx, dword [esp + 0x40]
or edx, ebx
jne 0x10037ae0
mov edx, dword [ebp]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
push edx
call fcn.10060150
add esp, 0x10
test byte [esi + 0x134], 1
mov edi, eax
jne 0x1003792c
mov eax, dword [ebp]
push eax
call fcn.1005bf60
add esp, 4
test byte [esi + 0x134], 2
jne 0x10037941
mov ecx, dword [ebp]
push ecx
call fcn.1005bf50
add esp, 4
cmp dword [esp + 0x20], 0
jne 0x1003794d
cmp edi, 0x38
jne 0x1003797b
mov eax, dword [ebp]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.10060e50
add esp, 8
test eax, eax
jne 0x1003797b
xor ebx, ebx
cmp dword [esp + 0x18], ebx
setne bl
test ebx, ebx
je 0x1003797f
xor edi, edi
mov dword [esp + 0x20], 1
jmp 0x100379d0
mov ebx, dword [esp + 0x24]
test edi, edi
je 0x100379c5
mov eax, dword [ebp]
mov ecx, dword [eax + 0x350]
test byte [ecx + 0x44], 2
jne 0x100379a2
cmp edi, 0x5c
je 0x100379a2
push 2
push eax
call fcn.1003d690
add esp, 8
push esi
call fcn.1004bcf0
push 1
push ebp
mov ecx, edi
call fcn.10036370
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call dword [0x101b9004]
jmp 0x10037be9
cmp dword [esp + 0x20], 0
je 0x10037ac1
push esi
call fcn.1004bcf0
mov edx, dword [ebp]
add edx, 0x3a4
push edx
push esi
call fcn.100307a0
mov eax, dword [ebp]
mov eax, dword [eax + 0x3a4]
add esp, 0xc
test eax, eax
je 0x10037a07
mov ecx, dword [eax]
push 6
push 0
push 0
push ecx
call fcn.10035e70
add esp, 0x10
cmp dword [esi + 0x148], 0
jne 0x10037a5f
test ebx, ebx
jne 0x10037a88
cmp dword [esi + 0x144], ebx
je 0x10037a51
mov edx, dword [esp + 0x18]
push edx
call dword [0x101b9004]
mov eax, dword [esi + 0x144]
push 1
push eax
push esi
mov dword [esp + 0x28], eax
mov dword [esi + 0x144], ebx
call fcn.10060be0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10037a51
mov dword [esp + 0x10], 1
mov eax, 0x10
mov ecx, esi
call fcn.100350a0
jmp 0x10037ac8
test ebx, ebx
jne 0x10037a88
mov eax, dword [esp + 0x18]
push eax
call dword [0x101b9004]
mov ecx, dword [esi + 0x148]
mov dword [esi + 0x148], ebx
add esp, 4
mov dword [esp + 0x18], ecx
mov ebx, 3
jmp 0x10037a8d
mov ebx, 2
push 0
push ebp
xor ecx, ecx
call fcn.10036370
mov edi, eax
add esp, 8
test edi, edi
jne 0x10037ad0
mov edx, dword [esp + 0x18]
push ebx
push edx
push esi
call fcn.10060be0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10037ad0
lea eax, [edi + 2]
mov ecx, esi
call fcn.100350a0
jmp 0x10037ac8
cmp dword [esp + 0x28], 0
je 0x10037ad0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x18]
push eax
call dword [0x101b9004]
jmp 0x10037be9
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
push esi
mov dword [eax + 0xc], edx
call fcn.10045cd0
add esp, 0x14
mov eax, 0xf
mov ecx, esi
call fcn.100350a0
cmp dword [esp + 0x3c], ebx
jl 0x10037b41
jg 0x10037b27
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x38], eax
jb 0x10037b41
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push 9
push ecx
push edx
push esi
call fcn.10035e70
add esp, 0x10
jmp case.0x10036e5f.1
mov eax, dword [esp + 0x40]
push 9
push ebx
push eax
push esi
call fcn.10035e70
add esp, 0x10
jmp case.0x10036e5f.1
mov eax, dword [ebp]
test eax, eax
mov dword [esp + 0xc], 0xffffffff
je 0x10037bb1
add eax, 0x3a4
push eax
push esi
call fcn.100307a0
mov eax, dword [ebp]
add esp, 8
cmp dword [eax + 0x310], 0
jne 0x10037b8a
cmp dword [eax + 0x3a0], 0
je 0x10037b91
mov eax, ebx
call fcn.10036180
push 0
push ebp
mov ecx, edi
call fcn.10036370
add esp, 8
test edi, edi
jne 0x10037ba4
mov edi, eax
cmp dword [ebp], 0
je 0x10037bb1
mov dword [ebp], 0
cmp dword [esi + 0x4c00], 0
je 0x10037bce
cmp dword [esi + 0x4c68], 7
je 0x10037bce
xor eax, eax
mov ecx, esi
call fcn.100350a0
jmp case.0x10036e5f.1
mov eax, 0x11
mov ecx, esi
call fcn.100350a0
jmp case.0x10036e5f.1
push esi
mov dword [ebp], 0
call fcn.10036040
add esp, 4
cmp dword [esi + 0x24], 0x11
jge 0x10037cdc
test edi, edi
je 0x10037c99
mov ebx, dword [esp + 0x4c]
mov eax, ebx
mov dword [esi + 0x4c0c], 0
call fcn.10036180
mov eax, dword [ebp]
test eax, eax
je 0x10037c7c
push eax
call fcn.1005bf50
mov ecx, dword [ebp]
push ecx
call fcn.1005bf60
mov edx, dword [ebp]
add edx, 0x394
push edx
push esi
call fcn.100307a0
mov eax, dword [ebp]
add eax, 0x3a4
push eax
push esi
call fcn.100307a0
add esp, 0x18
cmp dword [esp + 0x10], 0
je 0x10037c8b
mov edx, dword [ebp]
xor ecx, ecx
cmp edi, 0x1c
sete cl
push ecx
push edx
call fcn.10032940
add esp, 8
mov eax, 0x11
mov ecx, esi
mov dword [ebp], 0
call fcn.100350a0
jmp 0x10037ce0
cmp dword [esi + 0x24], 2
jne 0x10037c8b
push esi
call fcn.1004bcf0
add esp, 4
mov eax, 0x11
mov ecx, esi
call fcn.100350a0
jmp 0x10037ce0
mov eax, dword [ebp]
test eax, eax
je 0x10037cdc
push eax
call fcn.10045ef0
add esp, 4
test eax, eax
je 0x10037cdc
mov eax, dword [ebp]
push 2
push eax
mov edi, 0x2a
call fcn.1003d690
xor eax, eax
add esp, 8
cmp dword [esi + 0x24], 0x10
mov ecx, esi
setge al
add eax, 0x10
call fcn.100350a0
mov ebx, dword [esp + 0x4c]
or ebp, 0xffffffff
jmp 0x10037ce4
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0xc]
cmp dword [esi + 0x24], 0x11
jne 0x10037d0f
lea eax, [esi + 0x2c]
mov ecx, ebx
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
call fcn.100351d0
mov ebp, eax
mov eax, 0x12
mov ecx, esi
call fcn.100350a0
cmp ebp, 0xffffffff
je 0x10036b70
push 0
mov ecx, ebx
call fcn.100354a0
add esp, 4
test eax, eax
jne 0x10036b70
mov dword [esi + 0x28], edi
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [esi + 0x24]
push ecx
push str.In_state__d_with_no_easy_conn__bail_out__n
push esi
call fcn.10038470
add esp, 0xc
mov eax, 4
pop edi
pop ebp
pop ebx
add esp, 0x3c
ret
mov dword [esi + 0x28], edi
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x3c
ret
pop edi
pop ebp
mov eax, 2
pop ebx
add esp, 0x3c
ret