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

Disassembly:
sub esp, 0x3c
push edi
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
cmp esi, edi
je 0x52faf1
cmp dword [esi + 0x4990], 0xc0dedbad
jne 0x52faf1
push ebx
push ebp
lea esp, [esp]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebp
cmp dword [esi + 0x4858], ebx
je 0x52ebbd
mov eax, dword [esi + 0x4860]
push eax
push esi
push str.Pipe_broke:_handle__p__url___s_n
push esi
call fcn.005301c0
add esp, 0x10
cmp dword [esi + 0xc], 0x11
jge 0x52ebaf
lea eax, [ebx + 2]
mov ecx, esi
call fcn.0052d1c0
or ebp, 0xffffffff
xor edi, edi
mov dword [esi + 0x4858], ebx
mov dword [esi + 8], ebx
jmp 0x52fa5a
cmp dword [esi + 8], ebx
lea ebp, [esi + 8]
jne 0x52ebd6
mov eax, dword [esi + 0xc]
cmp eax, 2
jle 0x52ebd6
cmp eax, 0x10
jl 0x52fac7
mov ebx, dword [esp + 0x4c]
push 1
mov ecx, ebx
call fcn.0052d850
add esp, 4
test eax, eax
je 0x52ebf3
push ebx
call fcn.0052e5a0
add esp, 4
mov ecx, dword [ebp]
test ecx, ecx
je 0x52ec09
mov eax, dword [esi + 0xc]
cmp eax, 2
jle 0x52ec09
cmp eax, 0x11
jge 0x52ec09
mov dword [ecx], esi
cmp dword [ebp], 0
je 0x52ed6f
mov eax, dword [esi + 0xc]
cmp eax, 2
jl 0x52ed6f
cmp eax, 0x11
jge 0x52ed6f
xor ecx, ecx
cmp eax, 8
setle cl
lea edx, [esp + 0x50]
push ecx
push edx
push esi
call fcn.005326f0
add esp, 0xc
test edx, edx
jg 0x52ed6f
jl 0x52ec51
test eax, eax
jae 0x52ed6f
mov eax, dword [esi + 0xc]
cmp eax, 3
jne 0x52ec8b
mov eax, dword [esi + 0x62c]
mov ecx, dword [esi + 0x628]
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
call fcn.0052fc40
push edx
push eax
push str.Resolving_timed_out_after__ld_milliseconds
push esi
call fcn.00530250
add esp, 0x20
jmp 0x52ed3c
cmp eax, 4
jne 0x52ecbf
mov ecx, dword [esi + 0x62c]
mov edx, dword [esi + 0x628]
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
call fcn.0052fc40
push edx
push eax
push str.Connection_timed_out_after__ld_milliseconds
push esi
call fcn.00530250
add esp, 0x20
jmp 0x52ed3c
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
mov edx, dword [esi + 0x62c]
je 0x52ed0a
push ecx
mov ecx, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0x74]
push eax
mov eax, dword [esi + 0x628]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
push edx
call fcn.0052fc40
add esp, 0x10
push edx
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_out_of__I64d_bytes_received
push esi
call fcn.00530250
add esp, 0x20
jmp 0x52ed3c
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0x628]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
push edx
call fcn.0052fc40
add esp, 0x10
push edx
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_bytes_received
push esi
call fcn.00530250
add esp, 0x18
cmp dword [esi + 0xc], 9
jle 0x52ed58
mov eax, dword [ebp]
push 2
push eax
call fcn.005331f0
add esp, 8
mov dword [esp + 0x10], 1
mov edi, 0x1c
push 1
push ebp
mov eax, edi
call fcn.0052d480
add esp, 8
jmp case.0x52ed7b.1
mov eax, dword [esi + 0xc]
cmp eax, 0x12
ja case.default.0x52ed7b
jmp dword [eax*4 + 0x52fafc]
push esi
call fcn.00551e10
mov edi, eax
add esp, 4
test edi, edi
jne case.0x52ed7b.1
lea eax, [edi + 2]
mov ecx, esi
call fcn.0052d1c0
push 1
push esi
call fcn.00538aa0
add esp, 8
mov dword [esp + 0xc], 0xffffffff
jmp case.0x52ed7b.1
push 2
push esi
call fcn.00538aa0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push ebp
push esi
call fcn.0052d130
mov edi, eax
add esp, 0x18
cmp edi, 0x59
jne 0x52ee06
lea eax, [edi - 0x58]
mov ecx, esi
call fcn.0052d1c0
mov eax, dword [ebx + 0x28]
push esi
push eax
add ebx, 0x24
push ebx
call fcn.0054d6d0
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xffffffe5
add edi, 0x1b
jmp case.0x52ed7b.1
test edi, edi
jne case.0x52ed7b.1
mov ecx, dword [ebp]
push ecx
push esi
call fcn.0054ddb0
mov edi, eax
add esp, 8
test edi, edi
jne 0x52f109
cmp dword [esp + 0x2c], eax
je 0x52ee3a
lea eax, [edi + 3]
mov ecx, esi
call fcn.0052d1c0
jmp case.0x52ed7b.1
cmp dword [esp + 0x18], 0
mov dword [esp + 0xc], 0xffffffff
je 0x52ee67
push 1
push ebx
call fcn.0052d680
add esp, 8
neg eax
sbb eax, eax
add eax, 9
mov ecx, esi
call fcn.0052d1c0
jmp case.0x52ed7b.1
mov edx, dword [ebp]
cmp dword [edx + 0x740], 1
mov ecx, esi
jne 0x52ee84
mov eax, 5
call fcn.0052d1c0
jmp case.0x52ed7b.1
mov eax, 4
call fcn.0052d1c0
jmp case.0x52ed7b.1
mov edi, dword [ebp]
mov dword [esp + 0x14], 0
cmp dword [edi + 0x3b0], 0
je 0x52eeaf
mov ebx, dword [edi + 0xdc]
jmp 0x52eec6
cmp dword [edi + 0x3a4], 0
je 0x52eec0
mov ebx, dword [edi + 0xac]
jmp 0x52eec6
mov ebx, dword [edi + 0x98]
mov eax, dword [edi + 0xf4]
push eax
push ebx
push edi
call fcn.00525270
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x52ef06
push ebx
push str.Hostname__s_was_found_in_DNS_cache_n
mov dword [edi + 0x66c], eax
mov dword [edi + 0x670], 1
push esi
xor edi, edi
call fcn.005301c0
add esp, 0xc
cmp dword [esp + 0x14], edi
jne 0x52ef19
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00524190
add esp, 8
mov edi, eax
mov ebx, dword [esp + 0x4c]
push esi
push ebx
call fcn.0052dbb0
add esp, 8
cmp dword [esp + 0x14], 0
je 0x52ef8e
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00534360
mov edi, eax
add esp, 8
test edi, edi
je 0x52ef4e
mov dword [ebp], 0
jmp 0x52ef8e
cmp dword [esp + 0x18], 0
mov dword [esp + 0xc], 0xffffffff
je 0x52ef71
push 1
push ebx
call fcn.0052d680
add esp, 8
neg eax
sbb eax, eax
add eax, 9
jmp 0x52ef87
mov edx, dword [ebp]
cmp dword [edx + 0x740], 1
mov eax, 5
je 0x52ef87
mov eax, 4
mov ecx, esi
call fcn.0052d1c0
test edi, edi
je case.0x52ed7b.1
mov dword [esp + 0x10], 1
jmp case.0x52ed7b.1
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0054ac10
mov edi, eax
mov eax, dword [ebp]
add esp, 8
cmp dword [eax + 0x400], 0
je 0x52efe7
xor edi, edi
push edi
push ebp
xor eax, eax
mov dword [esp + 0x14], 0xffffffff
call fcn.0052d480
add esp, 8
lea eax, [edi + 2]
mov ecx, esi
call fcn.0052d1c0
jmp case.0x52ed7b.1
test edi, edi
jne case.0x52ed7b.1
cmp dword [eax + 0xe8], 2
jne 0x52f004
cmp dword [eax + 0x41c], edi
je case.0x52ed7b.1
cmp dword [eax + 0x740], 1
je case.0x52ed7b.1
mov eax, 6
mov ecx, esi
mov dword [esp + 0xc], 0xffffffff
call fcn.0052d1c0
jmp case.0x52ed7b.1
mov eax, dword [ebp]
lea edx, [esp + 0x30]
push edx
push 0
push eax
call fcn.00533750
add esp, 0xc
cmp dword [esp + 0x30], 0
mov edi, eax
je 0x52ef8e
test edi, edi
jne 0x52ef96
mov eax, dword [ebp]
cmp dword [eax + 0xe8], 2
jne 0x52f066
cmp dword [eax + 0x41c], edi
je 0x52f06f
cmp dword [eax + 0x740], 1
jne 0x52f080
mov eax, 5
mov ecx, esi
call fcn.0052d1c0
jmp case.0x52ed7b.1
mov eax, dword [eax + 0x3dc]
neg eax
sbb eax, eax
add eax, 6
mov ecx, esi
mov dword [esp + 0xc], 0xffffffff
call fcn.0052d1c0
jmp case.0x52ed7b.1
mov edx, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.005264b0
add esp, 8
cmp dword [esp + 0x18], 0
mov edi, eax
jne 0x52f0cc
mov eax, 7
mov ecx, esi
call fcn.0052d1c0
jmp case.0x52ed7b.1
test edi, edi
jne 0x52f0f6
push 1
push ebx
call fcn.0052d680
add esp, 8
neg eax
sbb eax, eax
add eax, 9
mov ecx, esi
call fcn.0052d1c0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x52ed7b.1
push esi
call fcn.00401f30
push 1
push ebp
mov eax, edi
call fcn.0052d480
add esp, 0xc
mov dword [esp + 0x10], 1
jmp case.0x52ed7b.1
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00526430
mov edi, eax
add esp, 8
test edi, edi
jne 0x52f0f6
cmp dword [esp + 0x18], eax
je case.0x52ed7b.1
push 1
push ebx
call fcn.0052d680
add esp, 8
neg eax
sbb eax, eax
add eax, 9
mov ecx, esi
call fcn.0052d1c0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x52ed7b.1
mov edx, dword [ebp]
push edx
push esi
call fcn.0054dcf0
add esp, 8
test eax, eax
je case.0x52ed7b.1
mov eax, 9
mov ecx, esi
call fcn.0052d1c0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x52ed7b.1
cmp dword [esi + 0x400], 0
je 0x52f1bd
mov eax, dword [ebp]
push 0
push eax
call fcn.005331f0
add esp, 8
mov eax, 0x10
mov ecx, esi
call fcn.0052d1c0
xor edi, edi
mov dword [esp + 0xc], 0xffffffff
jmp case.0x52ed7b.1
lea ecx, [esp + 0x1c]
push ecx
mov ebx, ebp
call fcn.0052d940
mov edi, eax
add esp, 4
test edi, edi
jne 0x52f267
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
jne 0x52f230
cmp dword [esi + 0x520], ebx
je 0x52f21b
mov eax, dword [esi + 0x48b8]
cmp eax, 7
je 0x52f1f6
cmp eax, 5
jne 0x52f21b
push ebx
push ebp
xor eax, eax
call fcn.0052d480
add esp, 8
mov eax, 0x10
mov ecx, esi
call fcn.0052d1c0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x52ed7b.1
mov eax, 0xa
mov ecx, esi
call fcn.0052d1c0
mov dword [esp + 0xc], ebx
jmp case.0x52ed7b.1
mov edx, dword [ebp]
mov ecx, esi
cmp dword [edx + 0x3c8], ebx
je 0x52f250
mov eax, 0xb
call fcn.0052d1c0
mov dword [esp + 0xc], ebx
jmp case.0x52ed7b.1
mov eax, 0xc
call fcn.0052d1c0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x52ed7b.1
cmp edi, 0x37
jne 0x52f338
mov eax, dword [ebp]
cmp dword [eax + 0x3a0], 0
je 0x52f338
lea ecx, [esp + 0x14]
push ecx
xor ebx, ebx
push eax
mov dword [esp + 0x1c], ebx
call fcn.00552480
add esp, 8
test eax, eax
je 0x52f2a4
mov edi, eax
mov dword [esp + 0x10], 1
jmp 0x52f2ad
xor ebx, ebx
cmp dword [esp + 0x14], ebx
setne bl
push esi
call fcn.00401f30
push 0
push ebp
mov eax, edi
call fcn.0052d480
add esp, 0xc
test ebx, ebx
je 0x52f320
test eax, eax
je 0x52f2df
cmp eax, 0x37
je 0x52f2df
mov edx, dword [esp + 0x14]
push edx
mov edi, eax
call dword [0x5c2298]
jmp 0x52f986
mov eax, dword [esp + 0x14]
push 2
push eax
push esi
call fcn.00552240
add esp, 0xc
test eax, eax
jne 0x52f30e
mov eax, 2
mov ecx, esi
call fcn.0052d1c0
mov dword [esp + 0xc], 0xffffffff
xor edi, edi
jmp case.0x52ed7b.1
mov ecx, dword [esp + 0x14]
push ecx
mov edi, eax
call dword [0x5c2298]
jmp 0x52f986
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x14], 1
call dword [0x5c2298]
jmp 0x52f986
push esi
call fcn.00401f30
add esp, 4
cmp dword [ebp], 0
je 0x52f354
push 0
push ebp
mov eax, edi
call fcn.0052d480
add esp, 8
mov dword [esp + 0x10], 1
jmp case.0x52ed7b.1
mov ecx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00526470
mov edi, eax
add esp, 8
test edi, edi
jne 0x52f3a6
cmp dword [esp + 0x1c], eax
je case.0x52ed7b.1
mov edx, dword [ebp]
mov eax, dword [edx + 0x3c8]
neg eax
sbb eax, eax
add eax, 0xc
mov ecx, esi
call fcn.0052d1c0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x52ed7b.1
push esi
call fcn.00401f30
push 0
jmp 0x52f0fe
mov edi, dword [ebp]
lea ebx, [esp + 0x34]
call fcn.0052d9d0
mov edi, eax
test edi, edi
jne 0x52f3a6
mov eax, dword [esp + 0x34]
test eax, eax
je 0x52f3ef
xor ecx, ecx
cmp eax, 1
sete cl
lea ecx, [ecx + ecx + 0xa]
mov eax, ecx
mov ecx, esi
call fcn.0052d1c0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x52ed7b.1
mov dword [esp + 0xc], 0
jmp case.0x52ed7b.1
mov edx, dword [ebp]
push edx
push esi
call fcn.0054de00
push ebx
call fcn.0052e5a0
mov eax, dword [ebp]
or ebx, 0xffffffff
add esp, 0xc
cmp dword [eax + 0x44c], ebx
jne 0x52f428
cmp dword [eax + 0x450], ebx
lea eax, [ebx + 0x11]
je 0x52f42d
mov eax, 0xd
mov ecx, esi
call fcn.0052d1c0
mov dword [esp + 0xc], ebx
jmp case.0x52ed7b.1
mov eax, dword [ebp]
push eax
push esi
call fcn.0054dd40
add esp, 8
test eax, eax
je case.0x52ed7b.1
mov eax, 0xe
mov ecx, esi
call fcn.0052d1c0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x52ed7b.1
mov ecx, dword [ebp]
push ecx
call fcn.00538ea0
add esp, 4
test eax, eax
je 0x52f485
mov edi, 0x2a
jmp case.0x52ed7b.1
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push edx
push eax
push esi
call fcn.0054fd90
mov edi, eax
add esp, 0xc
test edi, edi
jne case.0x52ed7b.1
mov eax, dword [esi + 0x20c]
mov ecx, dword [esi + 0x208]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
jl 0x52f509
jg 0x52f4c2
cmp ecx, edx
jbe 0x52f509
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esi + 0x644]
push edx
mov edx, dword [esi + 0x640]
push edx
mov edx, dword [esi + 0x5bc]
push eax
mov eax, dword [esi + 0x64c]
push ecx
mov ecx, dword [esi + 0x648]
push eax
mov eax, dword [esi + 0x5b8]
push ecx
push edx
push eax
call fcn.00538c50
cdq
add esp, 0x28
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov ecx, dword [esi + 0x214]
mov ebx, dword [esi + 0x210]
xor eax, eax
xor edx, edx
test ecx, ecx
jl 0x52f562
jg 0x52f523
test ebx, ebx
jbe 0x52f562
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push edx
mov edx, dword [esi + 0x654]
push eax
mov eax, dword [esi + 0x650]
push edx
mov edx, dword [esi + 0x658]
push eax
mov eax, dword [esi + 0x5b4]
push ecx
mov ecx, dword [esi + 0x65c]
push ebx
push ecx
mov ecx, dword [esi + 0x5b0]
push edx
push eax
push ecx
call fcn.00538c50
add esp, 0x28
cdq
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jg 0x52f58e
jl 0x52f573
cmp dword [esp + 0x38], 0
ja 0x52f58e
test edx, edx
jg 0x52f58e
jl 0x52f57d
test eax, eax
ja 0x52f58e
mov eax, 0xe
mov ecx, esi
call fcn.0052d1c0
jmp case.0x52ed7b.1
cmp ecx, edx
jl 0x52f5ae
jg 0x52f59a
cmp dword [esp + 0x38], eax
jb 0x52f5ae
mov edx, dword [esp + 0x38]
push ecx
push edx
push esi
call fcn.0052e3c0
add esp, 0xc
jmp case.0x52ed7b.1
push edx
push eax
push esi
call fcn.0052e3c0
add esp, 0xc
jmp case.0x52ed7b.1
mov eax, dword [esi + 0x20c]
mov ecx, dword [esi + 0x208]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
jl 0x52f631
jg 0x52f5ea
cmp ecx, edx
jbe 0x52f631
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esi + 0x644]
push edx
mov edx, dword [esi + 0x640]
push edx
mov edx, dword [esi + 0x5bc]
push eax
mov eax, dword [esi + 0x64c]
push ecx
mov ecx, dword [esi + 0x648]
push eax
mov eax, dword [esi + 0x5b8]
push ecx
push edx
push eax
call fcn.00538c50
cdq
add esp, 0x28
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov eax, dword [esi + 0x214]
mov ecx, dword [esi + 0x210]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x40], ebx
jl 0x52f692
jg 0x52f64d
cmp ecx, ebx
jbe 0x52f692
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esi + 0x654]
push edx
mov edx, dword [esi + 0x650]
push edx
mov edx, dword [esi + 0x5b4]
push eax
mov eax, dword [esi + 0x65c]
push ecx
mov ecx, dword [esi + 0x658]
push eax
mov eax, dword [esi + 0x5b0]
push ecx
push edx
push eax
call fcn.00538c50
cdq
add esp, 0x28
mov dword [esp + 0x40], eax
mov ebx, edx
cmp dword [esp + 0x3c], 0
jg 0x52f8c6
jl 0x52f6aa
cmp dword [esp + 0x38], 0
ja 0x52f8c6
test ebx, ebx
jg 0x52f8c6
jl 0x52f6bf
cmp dword [esp + 0x40], 0
ja 0x52f8c6
mov eax, dword [ebp]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
push eax
call fcn.00551a10
add esp, 0x10
test byte [esi + 0xf8], 1
mov edi, eax
jne 0x52f6ed
mov ecx, dword [ebp]
push ecx
call fcn.0054dda0
add esp, 4
test byte [esi + 0xf8], 2
jne 0x52f702
mov edx, dword [ebp]
push edx
call fcn.0054dd90
add esp, 4
cmp dword [esp + 0x20], 0
jne 0x52f70e
cmp edi, 0x38
jne 0x52f73c
mov ecx, dword [ebp]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00552480
add esp, 8
test eax, eax
jne 0x52f73c
xor ebx, ebx
cmp dword [esp + 0x14], ebx
setne bl
test ebx, ebx
je 0x52f740
xor edi, edi
mov dword [esp + 0x20], 1
jmp 0x52f791
mov ebx, dword [esp + 0x24]
test edi, edi
je 0x52f786
mov eax, dword [ebp]
mov edx, dword [eax + 0x440]
test byte [edx + 0x40], 2
jne 0x52f763
cmp edi, 0x5c
je 0x52f763
push 2
push eax
call fcn.005331f0
add esp, 8
push esi
call fcn.00401f30
push 1
push ebp
mov eax, edi
call fcn.0052d480
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
call dword [0x5c2298]
jmp 0x52f986
cmp dword [esp + 0x20], 0
je 0x52f8a7
push esi
call fcn.00401f30
mov eax, dword [ebp]
add eax, 0x4c8
push eax
push esi
call fcn.00525fa0
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x4c8]
add esp, 0xc
test eax, eax
je 0x52f7c5
mov edx, dword [eax]
push 0
push 0
push edx
call fcn.0052e3c0
add esp, 0xc
mov eax, dword [esp + 0x4c]
push eax
call fcn.0052e5a0
add esp, 4
cmp dword [esi + 0x10c], 0
jne 0x52f841
test ebx, ebx
jne 0x52f86a
cmp dword [esi + 0x108], ebx
je 0x52f833
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x5c2298]
mov eax, dword [esi + 0x108]
push 1
push eax
push esi
mov dword [esp + 0x24], eax
mov dword [esi + 0x108], ebx
call fcn.00552240
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x52f82b
lea eax, [ebx + 0x10]
mov ecx, esi
mov dword [esp + 0x14], ebx
call fcn.0052d1c0
jmp 0x52f8ae
mov dword [esp + 0x10], 1
mov eax, 0x10
mov ecx, esi
call fcn.0052d1c0
jmp 0x52f8ae
test ebx, ebx
jne 0x52f86a
mov edx, dword [esp + 0x14]
push edx
call dword [0x5c2298]
mov eax, dword [esi + 0x10c]
mov dword [esi + 0x10c], ebx
add esp, 4
mov dword [esp + 0x14], eax
mov ebx, 3
jmp 0x52f86f
mov ebx, 2
push 0
push ebp
xor eax, eax
call fcn.0052d480
mov edi, eax
add esp, 8
test edi, edi
jne 0x52f8b6
mov ecx, dword [esp + 0x14]
push ebx
push ecx
push esi
call fcn.00552240
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x52f8b6
lea eax, [edi + 2]
mov ecx, esi
call fcn.0052d1c0
mov dword [esp + 0x14], edi
jmp 0x52f8ae
cmp dword [esp + 0x28], 0
je 0x52f8b6
mov dword [esp + 0xc], 0xffffffff
mov edx, dword [esp + 0x14]
push edx
call dword [0x5c2298]
jmp 0x52f986
mov eax, 0xf
mov ecx, esi
call fcn.0052d1c0
cmp dword [esp + 0x3c], ebx
jl 0x52f8fc
jg 0x52f8e4
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x38], eax
jb 0x52f8fc
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
push esi
call fcn.0052e3c0
add esp, 0xc
jmp case.0x52ed7b.1
mov eax, dword [esp + 0x40]
push ebx
push eax
push esi
call fcn.0052e3c0
add esp, 0xc
jmp case.0x52ed7b.1
mov eax, dword [ebp]
mov dword [esp + 0xc], 0xffffffff
test eax, eax
je 0x52f94e
add eax, 0x4c8
push eax
push esi
call fcn.00525fa0
push ebx
call fcn.0052e5a0
push 0
push ebp
mov eax, edi
call fcn.0052d480
add esp, 0x14
test edi, edi
jne 0x52f941
mov edi, eax
cmp dword [ebp], 0
je 0x52f94e
mov dword [ebp], 0
cmp dword [esi + 0x520], 0
je 0x52f96b
cmp dword [esi + 0x48b8], 7
je 0x52f96b
xor eax, eax
mov ecx, esi
call fcn.0052d1c0
jmp case.0x52ed7b.1
mov eax, 0x11
mov ecx, esi
call fcn.0052d1c0
jmp case.0x52ed7b.1
push esi
mov dword [ebp], 0
call fcn.0052e470
add esp, 4
mov ebx, 0x11
cmp dword [esi + 0xc], ebx
jge 0x52fa2b
test edi, edi
je 0x52fa85
mov ecx, dword [esp + 0x4c]
push ecx
mov dword [esi + 0x4858], 0
call fcn.0052e5a0
mov eax, dword [ebp]
add esp, 4
test eax, eax
je 0x52fa13
push eax
call fcn.0054dd90
mov edx, dword [ebp]
push edx
call fcn.0054dda0
mov eax, dword [ebp]
add eax, 0x4b8
push eax
push esi
call fcn.00525fa0
mov ecx, dword [ebp]
add ecx, 0x4c8
push ecx
push esi
call fcn.00525fa0
add esp, 0x18
cmp dword [esp + 0x10], 0
je 0x52fa22
mov eax, dword [ebp]
xor edx, edx
cmp edi, 0x1c
sete dl
push edx
push eax
call fcn.0052acb0
add esp, 8
mov dword [ebp], 0
jmp 0x52fa22
cmp dword [esi + 0xc], 2
jne 0x52fa22
push esi
call fcn.00401f30
add esp, 4
mov eax, ebx
mov ecx, esi
call fcn.0052d1c0
mov ebp, dword [esp + 0xc]
cmp dword [esi + 0xc], ebx
jne 0x52fa5a
mov eax, dword [esp + 0x4c]
lea ecx, [esi + 0x14]
mov dword [ecx], 1
mov dword [ecx + 4], esi
mov dword [ecx + 8], edi
call fcn.0052d2f0
mov ebp, eax
mov eax, 0x12
mov ecx, esi
call fcn.0052d1c0
cmp ebp, 0xffffffff
je 0x52eb70
mov ecx, dword [esp + 0x4c]
push 0
call fcn.0052d850
add esp, 4
test eax, eax
jne 0x52eb70
mov eax, ebp
pop ebp
pop ebx
mov dword [esi + 0x10], edi
pop edi
add esp, 0x3c
ret
mov eax, dword [ebp]
test eax, eax
je 0x52fa2b
push eax
call fcn.00538ea0
add esp, 4
test eax, eax
je 0x52fa2b
mov ecx, dword [ebp]
push 2
push ecx
mov edi, 0x2a
call fcn.005331f0
xor eax, eax
add esp, 8
cmp dword [esi + 0xc], 0x10
mov ecx, esi
setge al
add eax, 0x10
call fcn.0052d1c0
or ebp, 0xffffffff
jmp 0x52fa2f
mov edx, dword [esi + 0xc]
push edx
push str.In_state__d_with_no_easy_conn__bail_out__n
push esi
call fcn.00530250
add esp, 0xc
pop ebp
pop ebx
mov eax, 4
pop edi
add esp, 0x3c
ret
pop ebp
pop ebx
mov dword [esi + 0x10], edi
xor eax, eax
pop edi
add esp, 0x3c
ret
mov eax, 2
pop edi
add esp, 0x3c
ret