Function at 0x4a7620
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 0x4a8414
cmp dword [esi + 0x881c], 0xc0dedbad
jne 0x4a8414
push ebx
mov edi, edi
xor ebx, ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x8710], ebp
je 0x4a769f
mov eax, dword [esi + 0x8718]
push eax
push esi
push str.Pipe_broke:_handle__p__url___s_n
push esi
call fcn.004a8cf0
mov eax, dword [esi + 0xc]
add esp, 0x10
cmp eax, 0x11
jge 0x4a7691
cmp eax, 2
je 0x4a768c
mov dword [esi + 0xc], 2
or ebx, 0xffffffff
xor edi, edi
mov dword [esi + 0x8710], ebp
mov dword [esi + 8], ebp
jmp 0x4a83c6
cmp dword [esi + 8], ebx
lea ebp, [esi + 8]
jne 0x4a76b8
mov eax, dword [esi + 0xc]
cmp eax, 2
jle 0x4a76b8
cmp eax, 0x10
jl 0x4a83ea
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0x64]
mov dword [ecx + 0x64], ebx
test eax, eax
je 0x4a76cf
push ecx
call fcn.004a7030
add esp, 4
mov ecx, dword [ebp]
test ecx, ecx
je 0x4a76e5
mov eax, dword [esi + 0xc]
cmp eax, 2
jle 0x4a76e5
cmp eax, 0x11
jge 0x4a76e5
mov dword [ecx], esi
cmp dword [ebp], ebx
je 0x4a783b
mov eax, dword [esi + 0xc]
cmp eax, 2
jl 0x4a783b
cmp eax, 0x11
jge 0x4a783b
xor edx, edx
cmp eax, 8
setle dl
lea eax, [esp + 0x3c]
push edx
push eax
push esi
call fcn.004ab200
add esp, 0xc
test eax, eax
jns 0x4a783b
mov eax, dword [esi + 0xc]
cmp eax, 3
jne 0x4a775b
mov ecx, dword [esi + 0x58c]
mov edx, dword [esi + 0x588]
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
call fcn.004a8850
push eax
push str.Resolving_timed_out_after__ld_milliseconds
push esi
call fcn.004a8d80
add esp, 0x1c
jmp 0x4a780d
cmp eax, 4
jne 0x4a778e
mov edx, dword [esi + 0x58c]
mov eax, dword [esi + 0x588]
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
call fcn.004a8850
push eax
push str.Connection_timed_out_after__ld_milliseconds
push esi
call fcn.004a8d80
add esp, 0x1c
jmp 0x4a780d
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
mov edx, dword [esi + 0x58c]
je 0x4a77dc
push ecx
mov ecx, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0x74]
push eax
mov eax, dword [esi + 0x588]
push ecx
mov ecx, dword [esi + 0x94]
push edx
mov edx, dword [esi + 0x90]
push eax
push ecx
push edx
call fcn.004a8850
add esp, 0x10
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_out_of__I64d_bytes_received
push esi
call fcn.004a8d80
add esp, 0x1c
jmp 0x4a780d
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0x588]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
call fcn.004a8850
add esp, 0x10
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_bytes_received
push esi
call fcn.004a8d80
add esp, 0x14
cmp dword [esi + 0xc], 9
jle 0x4a7825
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.004a4d10
add esp, 0xc
jmp case.0x4a7847.1
mov eax, dword [esi + 0xc]
cmp eax, 0x12
ja case.default.0x4a7847
jmp dword [eax*4 + 0x4a8420]
push esi
call fcn.004d0d80
mov edi, eax
add esp, 4
test edi, edi
jne case.0x4a7847.1
mov eax, 2
cmp dword [esi + 0xc], eax
je 0x4a786e
mov dword [esi + 0xc], eax
push 1
push esi
call fcn.004b6e30
add esp, 8
or ebx, 0xffffffff
jmp case.0x4a7847.1
push 2
push esi
call fcn.004b6e30
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push ebp
push esi
call fcn.004a5d00
mov edi, eax
add esp, 0x18
cmp edi, 0x59
jne 0x4a78d7
mov eax, 1
cmp dword [esi + 0xc], eax
je 0x4a78b1
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.004ccfd0
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xffffffe5
add edi, 0x1b
jmp case.0x4a7847.1
test edi, edi
jne case.0x4a7847.1
mov eax, dword [ebp]
push eax
push esi
call fcn.004cd780
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a7b7f
cmp dword [esp + 0x28], ebx
je 0x4a7912
mov eax, 3
cmp dword [esi + 0xc], eax
je case.0x4a7847.1
mov dword [esi + 0xc], eax
jmp case.0x4a7847.1
or ebx, 0xffffffff
cmp dword [esp + 0x18], 0
je 0x4a793e
mov ecx, dword [esp + 0x38]
push 1
push ecx
call fcn.004a6010
add esp, 8
neg eax
sbb eax, eax
add eax, 9
mov ecx, esi
call fcn.004a5da0
jmp case.0x4a7847.1
mov edx, dword [ebp]
cmp dword [edx + 0x4dc], 1
jne 0x4a7960
mov eax, 5
cmp dword [esi + 0xc], eax
je case.0x4a7847.1
mov dword [esi + 0xc], eax
jmp case.0x4a7847.1
mov eax, 4
cmp dword [esi + 0xc], eax
je case.0x4a7847.1
mov dword [esi + 0xc], eax
jmp case.0x4a7847.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.0049f0d0
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x4a79c2
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.004a8cf0
add esp, 8
cmp dword [esp + 0x14], ebx
jne 0x4a79d5
mov eax, dword [ebp]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0049db30
add esp, 8
mov edi, eax
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, esi
call fcn.004a6520
add esp, 4
cmp dword [esp + 0x14], ebx
je 0x4a7a04
mov eax, dword [ebp]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.004b1ff0
mov edi, eax
add esp, 8
test edi, edi
je 0x4a7a19
mov dword [ebp], ebx
test edi, edi
je case.0x4a7847.1
mov dword [esp + 0xc], 1
jmp case.0x4a7847.1
or ebx, 0xffffffff
cmp dword [esp + 0x18], 0
jne 0x4a791c
mov edx, dword [ebp]
cmp dword [edx + 0x4dc], 1
jne 0x4a7a49
cmp dword [esi + 0xc], 5
je case.0x4a7847.1
mov dword [esi + 0xc], 5
jmp case.0x4a7847.1
cmp dword [esi + 0xc], 4
je case.0x4a7847.1
mov dword [esi + 0xc], 4
jmp case.0x4a7847.1
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.004ca5b0
mov edi, eax
mov eax, dword [ebp]
add esp, 8
or ebx, 0xffffffff
cmp dword [eax + 0x248], 0
je 0x4a7aa4
xor edi, edi
push edi
push edi
push ebp
call fcn.004a4d10
add esp, 0xc
cmp dword [esi + 0xc], 2
je case.0x4a7847.1
mov dword [esi + 0xc], 2
jmp case.0x4a7847.1
test edi, edi
jne case.0x4a7847.1
cmp dword [eax + 0x4dc], 2
jne case.0x4a7847.1
cmp dword [esi + 0xc], 6
je case.0x4a7847.1
mov dword [esi + 0xc], 6
jmp case.0x4a7847.1
mov eax, dword [ebp]
lea edx, [esp + 0x2c]
push edx
push 0
push eax
call fcn.004ac280
add esp, 0xc
mov edi, eax
cmp dword [esp + 0x2c], ebx
je 0x4a7a04
test edi, edi
jne 0x4a7a0c
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.004a5da0
jmp case.0x4a7847.1
mov eax, dword [ebp]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.004a01d0
add esp, 8
mov edi, eax
cmp dword [esp + 0x18], ebx
jne 0x4a7b44
cmp dword [esi + 0xc], 7
je case.0x4a7847.1
mov dword [esi + 0xc], 7
jmp case.0x4a7847.1
test edi, edi
jne 0x4a7b6d
mov ecx, dword [esp + 0x38]
push 1
push ecx
call fcn.004a6010
add esp, 8
neg eax
sbb eax, eax
add eax, 9
mov ecx, esi
call fcn.004a5da0
or ebx, 0xffffffff
jmp case.0x4a7847.1
push esi
call fcn.004d0ee0
push 1
push edi
push ebp
call fcn.004a4d10
add esp, 0x10
mov dword [esp + 0xc], 1
jmp case.0x4a7847.1
mov eax, dword [ebp]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.004a0150
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a7b6d
cmp dword [esp + 0x18], ebx
je case.0x4a7847.1
jmp 0x4a7b48
mov edx, dword [ebp]
push edx
push esi
call fcn.004cd6c0
add esp, 8
test eax, eax
je case.0x4a7847.1
mov eax, 9
cmp dword [esi + 0xc], eax
je 0x4a7bd1
mov dword [esi + 0xc], eax
or ebx, 0xffffffff
jmp case.0x4a7847.1
xor edi, edi
cmp dword [esi + 0x3b0], edi
je 0x4a7c01
mov eax, dword [ebp]
mov dword [eax + 0x1f4], edi
mov eax, 0x10
cmp dword [esi + 0xc], eax
je 0x4a7bd1
mov dword [esi + 0xc], eax
or ebx, 0xffffffff
jmp case.0x4a7847.1
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004a15b0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a7ca5
cmp dword [esp + 0x1c], ebx
jne 0x4a7c6d
cmp dword [esi + 0x498], ebx
je 0x4a7c59
mov eax, dword [esi + 0x8758]
cmp eax, 6
je 0x4a7c37
cmp eax, 4
jne 0x4a7c59
push 0
push 0
push ebp
call fcn.004a4d10
mov eax, 0x10
add esp, 0xc
cmp dword [esi + 0xc], eax
je 0x4a7bd1
mov dword [esi + 0xc], eax
or ebx, 0xffffffff
jmp case.0x4a7847.1
mov eax, 0xa
cmp dword [esi + 0xc], eax
je 0x4a7c85
mov dword [esi + 0xc], eax
xor ebx, ebx
jmp case.0x4a7847.1
mov edx, dword [ebp]
cmp dword [edx + 0x214], ebx
je 0x4a7c8c
mov eax, 0xb
cmp dword [esi + 0xc], eax
je 0x4a7c85
mov dword [esi + 0xc], eax
xor ebx, ebx
jmp case.0x4a7847.1
mov eax, 0xc
cmp dword [esi + 0xc], eax
je 0x4a7bd1
mov dword [esi + 0xc], eax
or ebx, 0xffffffff
jmp case.0x4a7847.1
cmp edi, 0x37
jne 0x4a7d8d
mov eax, dword [ebp]
cmp dword [eax + 0x1f8], ebx
je 0x4a7d8d
lea ecx, [esp + 0x10]
push ecx
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.004d14e0
add esp, 8
test eax, eax
je 0x4a7ce1
mov edi, eax
mov dword [esp + 0xc], 1
jmp 0x4a7cea
xor ebx, ebx
cmp dword [esp + 0x10], ebx
setne bl
push esi
call fcn.004d0ee0
push 0
push edi
push ebp
call fcn.004a4d10
add esp, 0x10
test ebx, ebx
je 0x4a7d6e
test eax, eax
je 0x4a7d22
cmp eax, 0x37
je 0x4a7d22
mov edx, dword [esp + 0x10]
push edx
mov edi, eax
call dword [0x70dbd8]
mov ebx, dword [esp + 0x18]
add esp, 4
jmp case.0x4a7847.1
mov eax, dword [esp + 0x10]
mov edi, 2
push edi
push eax
push esi
call fcn.004d11a0
add esp, 0xc
test eax, eax
jne 0x4a7d55
cmp dword [esi + 0xc], edi
je 0x4a7d42
mov dword [esi + 0xc], edi
mov dword [esp + 0x14], 0xffffffff
mov ebx, dword [esp + 0x14]
xor edi, edi
jmp case.0x4a7847.1
mov ecx, dword [esp + 0x10]
push ecx
mov edi, eax
call dword [0x70dbd8]
mov ebx, dword [esp + 0x18]
add esp, 4
jmp case.0x4a7847.1
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x10], 1
call dword [0x70dbd8]
mov ebx, dword [esp + 0x18]
add esp, 4
jmp case.0x4a7847.1
push esi
call fcn.004d0ee0
add esp, 4
cmp dword [ebp], ebx
je 0x4a7da7
push 0
push edi
push ebp
call fcn.004a4d10
add esp, 0xc
mov dword [esp + 0xc], 1
jmp case.0x4a7847.1
mov ecx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.004a0190
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a7df4
cmp dword [esp + 0x1c], ebx
je case.0x4a7847.1
mov edx, dword [ebp]
mov eax, dword [edx + 0x214]
neg eax
sbb eax, eax
add eax, 0xc
mov ecx, esi
call fcn.004a5da0
or ebx, 0xffffffff
jmp case.0x4a7847.1
push esi
call fcn.004d0ee0
push 0
jmp 0x4a7b75
mov ecx, dword [ebp]
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.004a1640
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a7df4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a7c85
xor edx, edx
cmp eax, 1
sete dl
mov ecx, esi
lea eax, [edx + edx + 0xa]
call fcn.004a5da0
or ebx, 0xffffffff
jmp case.0x4a7847.1
mov eax, dword [ebp]
push eax
push esi
call fcn.004cd7e0
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004a7030
mov eax, dword [ebp]
or ecx, 0xffffffff
add esp, 0xc
cmp dword [eax + 0x274], ecx
jne 0x4a7e6f
cmp dword [eax + 0x278], ecx
lea eax, [ecx + 0x11]
je 0x4a7e74
mov eax, 0xd
cmp dword [esi + 0xc], eax
je 0x4a7bd1
mov dword [esi + 0xc], eax
or ebx, 0xffffffff
jmp case.0x4a7847.1
mov edx, dword [ebp]
push edx
push esi
call fcn.004cd710
add esp, 8
test eax, eax
je case.0x4a7847.1
mov eax, 0xe
cmp dword [esi + 0xc], eax
je 0x4a7bd1
mov dword [esi + 0xc], eax
or ebx, 0xffffffff
jmp case.0x4a7847.1
mov eax, dword [ebp]
push eax
call fcn.004b70a0
add esp, 4
test eax, eax
je 0x4a7ecd
mov edi, 0x2a
jmp 0x4a7ee2
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push edx
push esi
call fcn.004cf920
add esp, 0xc
mov edi, eax
mov ecx, dword [esi + 0x248]
mov eax, dword [esi + 0x24c]
mov edx, ecx
or edx, eax
je 0x4a7f0e
cmp dword [esi + 0x54c], eax
jg case.0x4a7847.1
jl 0x4a7f0e
cmp dword [esi + 0x548], ecx
jae case.0x4a7847.1
mov ecx, dword [esi + 0x250]
mov eax, dword [esi + 0x254]
mov edx, ecx
or edx, eax
je 0x4a7f3a
cmp dword [esi + 0x544], eax
jg case.0x4a7847.1
jl 0x4a7f3a
cmp dword [esi + 0x540], ecx
jae case.0x4a7847.1
cmp dword [esi + 0xc], 0xe
je case.0x4a7847.1
mov dword [esi + 0xc], 0xe
jmp case.0x4a7847.1
mov eax, dword [esi + 0x24c]
mov ebx, dword [esi + 0x248]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ecx
cmp eax, ecx
jl 0x4a7fbf
jg 0x4a7f70
cmp ebx, ecx
jbe 0x4a7fbf
mov edx, dword [esi + 0x54c]
mov ecx, dword [esi + 0x548]
cmp edx, eax
jl 0x4a7fbf
jg 0x4a7f86
cmp ecx, ebx
jbe 0x4a7fbf
mov ecx, dword [esi + 0x300]
mov dword [esi + 0xc], 0xf
test ecx, ecx
jne 0x4a7f9c
mov ecx, 0x4000
push ecx
mov ecx, dword [esi + 0x548]
push edx
push ecx
push eax
push ebx
call fcn.004d0cb0
push eax
push esi
call fcn.004a6ec0
mov ebx, dword [esp + 0x30]
add esp, 0x1c
jmp case.0x4a7847.1
mov eax, dword [esi + 0x254]
mov ecx, dword [esi + 0x250]
test eax, eax
jl 0x4a800e
jg 0x4a7fd5
test ecx, ecx
je 0x4a800e
mov edx, dword [esi + 0x544]
mov ebx, dword [esi + 0x540]
cmp edx, eax
jl 0x4a800e
jg 0x4a7feb
cmp ebx, ecx
jbe 0x4a800e
mov ecx, dword [esi + 0x300]
mov dword [esi + 0xc], 0xf
test ecx, ecx
jne 0x4a8001
mov ecx, 0x4000
push ecx
push edx
push ebx
push eax
mov eax, dword [esi + 0x250]
push eax
jmp 0x4a7fa7
mov edx, dword [ebp]
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
call fcn.004d08f0
add esp, 0xc
test byte [esi + 0x138], 1
mov edi, eax
jne 0x4a8037
mov eax, dword [ebp]
push eax
call fcn.004cd770
add esp, 4
test byte [esi + 0x138], 2
jne 0x4a804c
mov ecx, dword [ebp]
push ecx
call fcn.004cd760
add esp, 4
cmp dword [esp + 0x20], 0
jne 0x4a8058
cmp edi, 0x38
jne 0x4a8086
mov eax, dword [ebp]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.004d14e0
add esp, 8
test eax, eax
jne 0x4a8086
xor ebx, ebx
cmp dword [esp + 0x10], ebx
setne bl
test ebx, ebx
je 0x4a808a
xor edi, edi
mov dword [esp + 0x20], 1
jmp 0x4a80db
mov ebx, dword [esp + 0x24]
test edi, edi
je 0x4a80d0
mov eax, dword [ebp]
mov ecx, dword [eax + 0x268]
test byte [ecx + 0x40], 2
jne 0x4a80a7
mov dword [eax + 0x1f4], 1
push esi
call fcn.004d0ee0
push 0
push edi
push ebp
call fcn.004a4d10
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
call dword [0x70dbd8]
mov ebx, dword [esp + 0x18]
add esp, 4
jmp case.0x4a7847.1
cmp dword [esp + 0x20], 0
je 0x4a81f0
push esi
call fcn.004d0ee0
mov edx, dword [ebp]
mov eax, dword [edx + 0x2b0]
push eax
push esi
call fcn.0049fdb0
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x2b0]
add esp, 0xc
cmp dword [eax], 0
je 0x4a8111
mov edx, dword [eax]
mov eax, dword [edx]
push 1
push eax
call fcn.004a6ec0
add esp, 8
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004a7030
add esp, 4
cmp dword [esi + 0x14c], 0
jne 0x4a817d
test ebx, ebx
jne 0x4a81a6
cmp dword [esi + 0x148], ebx
je 0x4a816e
mov edx, dword [esp + 0x10]
push edx
call dword [0x70dbd8]
mov eax, dword [esi + 0x148]
push 1
push eax
push esi
mov dword [esp + 0x20], eax
mov dword [esi + 0x148], ebx
call fcn.004d11a0
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x4a8166
mov dword [esp + 0x10], ebx
jmp 0x4a816e
mov dword [esp + 0xc], 1
mov eax, 0x10
cmp dword [esi + 0xc], eax
je 0x4a81e8
mov dword [esi + 0xc], eax
jmp 0x4a81e8
test ebx, ebx
jne 0x4a81a6
mov eax, dword [esp + 0x10]
push eax
call dword [0x70dbd8]
mov ecx, dword [esi + 0x14c]
mov dword [esi + 0x14c], ebx
add esp, 4
mov dword [esp + 0x10], ecx
mov ebx, 3
jmp 0x4a81ab
mov ebx, 2
push 0
push 0
push ebp
call fcn.004a4d10
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4a81f0
mov edx, dword [esp + 0x10]
push ebx
push edx
push esi
call fcn.004d11a0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4a81f0
mov eax, 2
cmp dword [esi + 0xc], eax
je 0x4a81e0
mov dword [esi + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x10]
push eax
call dword [0x70dbd8]
mov ebx, dword [esp + 0x18]
add esp, 4
jmp case.0x4a7847.1
mov eax, dword [ebp]
or ebx, 0xffffffff
test eax, eax
je 0x4a8247
mov ecx, dword [eax + 0x2b0]
push ecx
push esi
call fcn.0049fdb0
mov edx, dword [esp + 0x40]
push edx
call fcn.004a7030
push 0
push edi
push ebp
call fcn.004a4d10
add esp, 0x18
test edi, edi
jne 0x4a823a
mov edi, eax
cmp dword [ebp], 0
je 0x4a8247
mov dword [ebp], 0
cmp dword [esi + 0x498], 0
je 0x4a8268
cmp dword [esi + 0x8758], 6
je 0x4a8268
cmp dword [esi + 0xc], 0
je case.0x4a7847.1
mov dword [esi + 0xc], 0
jmp case.0x4a7847.1
cmp dword [esi + 0xc], 0x11
je 0x4a8389
mov eax, dword [esi + 0x40]
mov dword [esi + 0xc], 0x11
dec dword [eax + 0x10]
jmp case.0x4a7847.1
push 0
push esi
mov dword [ebp], ebx
call fcn.004a6d20
add esp, 8
cmp dword [esi + 0xc], 0x11
jge 0x4a8387
test edi, edi
je 0x4a833a
mov eax, dword [esp + 0x38]
push eax
mov dword [esi + 0x8710], 0
call fcn.004a7030
mov eax, dword [ebp]
add esp, 4
test eax, eax
je 0x4a8316
push eax
call fcn.004cd760
mov ecx, dword [ebp]
push ecx
call fcn.004cd770
mov edx, dword [ebp]
mov eax, dword [edx + 0x2ac]
push eax
push esi
call fcn.0049fdb0
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x2b0]
push edx
push esi
call fcn.0049fdb0
add esp, 0x18
cmp dword [esp + 0xc], 0
je 0x4a8325
mov ecx, dword [ebp]
xor eax, eax
cmp edi, 0x1c
sete al
push eax
push ecx
call fcn.004a3f50
add esp, 8
mov dword [ebp], 0
jmp 0x4a8325
cmp dword [esi + 0xc], 2
jne 0x4a8325
push esi
call fcn.004d0ee0
add esp, 4
cmp dword [esi + 0xc], 0x11
je 0x4a8389
mov eax, dword [esi + 0x40]
mov dword [esi + 0xc], 0x11
dec dword [eax + 0x10]
jmp 0x4a8383
mov eax, dword [ebp]
test eax, eax
je 0x4a8383
push eax
call fcn.004b70a0
add esp, 4
test eax, eax
je 0x4a8383
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 0x4a8380
mov dword [esi + 0xc], ecx
cmp ecx, 0x11
jne 0x4a8380
mov eax, dword [esi + 0x40]
dec dword [eax + 0x10]
or ebx, 0xffffffff
cmp dword [esi + 0xc], 0x11
jne 0x4a83c6
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.004ccfd0
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffd
add ebx, 3
cmp dword [esi + 0xc], 0x12
je 0x4a83c6
mov dword [esi + 0xc], 0x12
xor ebp, ebp
cmp ebx, 0xffffffff
je 0x4a7650
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x64], ebp
jne 0x4a7650
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.004a8d80
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