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

Disassembly:
sub esp, 0x24
push ebx
xor ebx, ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 8], ebp
cmp esi, ebx
je 0x45a3b0
cmp dword [esi + 0x9004], 0xc0dedbad
jne 0x45a3b0
push edi
mov dword [esp + 0x10], ebx
cmp dword [esi + 0x8f00], ebx
je 0x459718
mov eax, dword [esi + 0x8f08]
push eax
push esi
push str.Pipe_broke:_handle_0x_p__url___s_n
push esi
call fcn.0045a960
add esp, 0x10
cmp dword [esi + 0xc], 0x10
jge 0x45970a
lea eax, [ebx + 2]
mov ecx, esi
call fcn.00458330
or ebp, 0xffffffff
mov dword [esi + 0x10], ebx
mov dword [esi + 0x8f00], ebx
mov dword [esi + 8], ebx
jmp 0x45a333
mov eax, dword [esi + 8]
lea edi, [esi + 8]
cmp eax, ebx
jne 0x45974e
mov ecx, dword [esi + 0xc]
cmp ecx, 2
jle 0x45974a
cmp ecx, 0xf
jge 0x45974a
push ecx
push str.In_state__d_with_no_easy_conn__bail_out__n
push esi
call fcn.0045a9f0
add esp, 0xc
pop edi
pop ebp
mov eax, 4
pop ebx
add esp, 0x24
ret
cmp eax, ebx
je 0x45975d
mov ecx, dword [esi + 0xc]
cmp ecx, 2
jle 0x45975d
cmp ecx, 0x10
jge 0x45975d
mov dword [eax], esi
cmp dword [edi], ebx
je 0x4598a8
mov eax, dword [esi + 0xc]
cmp eax, 2
jl 0x4598a8
cmp eax, 0x10
jge 0x4598a8
xor ecx, ecx
cmp eax, 7
setle cl
lea edx, [esp + 0x38]
push ecx
push edx
push esi
call fcn.0045c4c0
add esp, 0xc
test eax, eax
jge 0x4598a8
mov eax, dword [esi + 0xc]
cmp eax, 3
jne 0x4597d2
mov eax, dword [esi + 0x534]
mov ecx, dword [esi + 0x530]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
call fcn.0045a570
push eax
push str.Resolving_timed_out_after__ld_milliseconds
push esi
call fcn.0045a9f0
add esp, 0x1c
jmp 0x459884
cmp eax, 4
jne 0x459805
mov ecx, dword [esi + 0x534]
mov edx, dword [esi + 0x530]
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
call fcn.0045a570
push eax
push str.Connection_timed_out_after__ld_milliseconds
push esi
call fcn.0045a9f0
add esp, 0x1c
jmp 0x459884
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
mov edx, dword [esi + 0x534]
je 0x459853
push ecx
mov ecx, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0x74]
push eax
mov eax, dword [esi + 0x530]
push ecx
mov ecx, dword [esi + 0x94]
push edx
mov edx, dword [esi + 0x90]
push eax
push ecx
push edx
call fcn.0045a570
add esp, 0x10
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_out_of__I64d_bytes_received
push esi
call fcn.0045a9f0
add esp, 0x1c
jmp 0x459884
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0x530]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
call fcn.0045a570
add esp, 0x10
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_bytes_received
push esi
call fcn.0045a9f0
add esp, 0x14
mov eax, dword [edi]
mov dword [eax + 0x24c], 1
mov eax, 0x10
mov ecx, esi
mov dword [esi + 0x10], 0x1c
call fcn.00458330
jmp 0x45a333
mov eax, dword [esi + 0xc]
cmp eax, 0x11
ja case.default.0x4598b4
jmp dword [eax*4 + 0x45a3bc]
push esi
call fcn.00479840
add esp, 4
mov dword [esi + 0x10], eax
cmp eax, ebx
jne case.0x4598b4.1
mov eax, 2
mov ecx, esi
call fcn.00458330
push 1
push esi
call fcn.00460c50
mov dword [esp + 0x14], 0xffffffff
jmp 0x45a2a6
push 2
push esi
call fcn.00460c50
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push esi
call fcn.00458290
add esp, 0x18
mov dword [esi + 0x10], eax
cmp eax, 0x59
jne 0x459928
mov eax, 1
mov ecx, esi
call fcn.00458330
mov dword [esi + 0x10], ebx
jmp case.0x4598b4.1
cmp eax, ebx
jne case.0x4598b4.1
mov eax, dword [edi]
push eax
push esi
call fcn.0047afe0
add esp, 8
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x459b97
cmp dword [esp + 0x28], ebx
je 0x45995e
mov eax, 3
mov ecx, esi
call fcn.00458330
jmp case.0x4598b4.1
mov dword [esp + 0xc], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x459986
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x2c]
neg eax
sbb eax, eax
add eax, 8
mov ecx, esi
call fcn.00458330
jmp case.0x4598b4.1
mov edx, dword [edi]
cmp dword [edx + 0x5c0], 1
mov ecx, esi
jne 0x4599a2
mov eax, 5
call fcn.00458330
jmp case.0x4598b4.1
mov eax, 4
call fcn.00458330
jmp case.0x4598b4.1
mov ecx, dword [edi]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], ebx
call fcn.00450ba0
mov ebp, dword [esp + 0x3c]
push esi
push ebp
mov dword [esi + 0x10], eax
call fcn.00459290
add esp, 0x10
cmp dword [esp + 0x18], ebx
je 0x459a2a
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0045ef50
add esp, 8
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x4599f4
mov dword [edi], ebx
jmp 0x459a2a
mov dword [esp + 0xc], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x459a0e
mov eax, dword [ebp + 0x2c]
neg eax
sbb eax, eax
add eax, 8
jmp 0x459a23
mov ecx, dword [edi]
cmp dword [ecx + 0x5c0], 1
mov eax, 5
je 0x459a23
mov eax, 4
mov ecx, esi
call fcn.00458330
cmp dword [esi + 0x10], ebx
je case.0x4598b4.1
mov dword [esp + 0x10], 1
jmp case.0x4598b4.1
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00473a40
mov ecx, dword [edi]
add esp, 8
mov dword [esi + 0x10], eax
cmp dword [ecx + 0x2a4], ebx
je 0x459a8b
mov eax, dword [esi + 0x138]
cmp eax, ebx
je 0x459a69
mov byte [eax], bl
mov eax, 2
mov ecx, esi
mov dword [esi + 0x85f8], ebx
mov dword [esi + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
call fcn.00458330
jmp case.0x4598b4.1
cmp eax, ebx
jne case.0x4598b4.1
cmp dword [ecx + 0x5c0], 2
jne case.0x4598b4.1
mov eax, 4
mov ecx, esi
call fcn.00458330
jmp case.0x4598b4.1
mov edx, dword [edi]
lea ecx, [esp + 0x24]
push ecx
push ebx
push edx
call fcn.0045d3a0
add esp, 0xc
mov dword [esi + 0x10], eax
cmp dword [esp + 0x24], ebx
je 0x459ae2
cmp eax, ebx
jne 0x459ae2
mov ecx, dword [edi]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00452880
add esp, 8
mov dword [esi + 0x10], eax
cmp dword [esi + 0x10], ebx
je 0x459af4
mov dword [esp + 0x10], 1
jmp case.0x4598b4.1
cmp dword [esp + 0x24], ebx
je case.0x4598b4.1
cmp dword [esp + 0x14], ebx
jne 0x459b60
mov edx, dword [edi]
cmp dword [edx + 0x5c0], 1
mov ecx, esi
jne 0x459b28
mov eax, 5
call fcn.00458330
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4598b4.1
mov eax, 6
call fcn.00458330
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4598b4.1
mov edx, dword [edi]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00452800
add esp, 8
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x459b82
cmp dword [esp + 0x14], ebx
je case.0x4598b4.1
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x2c]
neg eax
sbb eax, eax
add eax, 8
mov ecx, esi
call fcn.00458330
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4598b4.1
push esi
call fcn.00450800
mov ecx, dword [esi + 0x10]
push 1
push ecx
push edi
call fcn.00457330
add esp, 0x10
mov dword [esp + 0x10], 1
jmp case.0x4598b4.1
mov ebp, dword [edi]
cmp dword [ebp + 0x304], ebx
jne case.0x4598b4.1
mov eax, dword [ebp + 0x308]
push esi
call fcn.00458be0
add esp, 4
test eax, eax
je case.0x4598b4.1
mov eax, 8
mov ecx, esi
mov dword [ebp + 0x304], 1
call fcn.00458330
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4598b4.1
cmp dword [esi + 0x368], ebx
je 0x459c18
mov edx, dword [edi]
mov eax, 0xf
mov ecx, esi
mov dword [edx + 0x24c], ebx
call fcn.00458330
mov dword [esi + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4598b4.1
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.00453cc0
add esp, 8
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x459cbe
cmp dword [esp + 0x1c], ebx
jne 0x459c88
cmp dword [esi + 0x44c], ebx
je 0x459c73
mov eax, dword [esi + 0x8f40]
cmp eax, 6
je 0x459c4f
cmp eax, 4
jne 0x459c73
push ebx
push ebx
push edi
call fcn.00457330
add esp, 0xc
mov eax, 0xf
mov ecx, esi
call fcn.00458330
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4598b4.1
mov eax, 9
mov ecx, esi
call fcn.00458330
mov dword [esp + 0xc], ebx
jmp case.0x4598b4.1
mov ecx, dword [edi]
cmp dword [ecx + 0x26c], ebx
mov ecx, esi
je 0x459ca7
mov eax, 0xa
call fcn.00458330
mov dword [esp + 0xc], ebx
jmp case.0x4598b4.1
mov eax, 0xb
call fcn.00458330
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4598b4.1
cmp eax, 0x37
jne 0x459d86
mov eax, dword [edi]
cmp dword [eax + 0x250], ebx
je 0x459d86
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], ebx
xor ebp, ebp
call fcn.00479ee0
add esp, 8
cmp eax, ebx
je 0x459cfa
mov dword [esi + 0x10], eax
mov dword [esp + 0x10], 1
jmp 0x459d05
xor eax, eax
cmp dword [esp + 0x18], ebx
setne al
mov ebp, eax
push esi
call fcn.00450800
mov ecx, dword [esi + 0x10]
push ebx
push ecx
push edi
call fcn.00457330
add esp, 0x10
cmp ebp, ebx
je 0x459a33
cmp eax, ebx
je 0x459d40
cmp eax, 0x37
je 0x459d40
mov edx, dword [esp + 0x18]
push edx
mov dword [esi + 0x10], eax
call dword [0x4a3684]
add esp, 4
jmp case.0x4598b4.1
mov eax, dword [esp + 0x18]
push 2
push eax
push esi
call fcn.00479bf0
add esp, 0xc
cmp eax, ebx
jne 0x459d70
mov eax, 2
mov ecx, esi
call fcn.00458330
mov dword [esp + 0xc], 0xffffffff
mov dword [esi + 0x10], ebx
jmp case.0x4598b4.1
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esi + 0x10], eax
call dword [0x4a3684]
add esp, 4
jmp case.0x4598b4.1
push esi
call fcn.00450800
add esp, 4
cmp dword [edi], ebx
je 0x459da1
mov edx, dword [esi + 0x10]
push ebx
push edx
push edi
call fcn.00457330
add esp, 0xc
mov dword [esp + 0x10], 1
jmp case.0x4598b4.1
mov ecx, dword [edi]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00452840
add esp, 8
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x459df2
cmp dword [esp + 0x1c], ebx
je case.0x4598b4.1
mov edx, dword [edi]
mov eax, dword [edx + 0x26c]
neg eax
sbb eax, eax
add eax, 0xb
mov ecx, esi
call fcn.00458330
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4598b4.1
push esi
call fcn.00450800
mov eax, dword [esi + 0x10]
push ebx
push eax
jmp 0x459b8e
mov edx, dword [edi]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.00453d50
add esp, 8
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x459e47
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x459c9e
xor ecx, ecx
cmp eax, 1
sete cl
lea ecx, [ecx + ecx + 9]
mov eax, ecx
mov ecx, esi
call fcn.00458330
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4598b4.1
push esi
call fcn.00450800
mov edx, dword [esi + 0x10]
push ebx
push edx
jmp 0x459b8e
mov eax, dword [edi]
push eax
push esi
call fcn.0047b030
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00458ed0
mov eax, dword [edi]
or edx, 0xffffffff
add esp, 0xc
cmp dword [eax + 0x2cc], edx
jne 0x459e85
cmp dword [eax + 0x2d0], edx
lea eax, [edx + 0x10]
je 0x459e8a
mov eax, 0xc
mov ecx, esi
call fcn.00458330
mov dword [esp + 0xc], edx
jmp case.0x4598b4.1
mov ebp, dword [edi]
cmp dword [ebp + 0x300], ebx
jne case.0x4598b4.1
mov eax, dword [ebp + 0x30c]
push esi
call fcn.00458be0
add esp, 4
test eax, eax
je case.0x4598b4.1
mov eax, 0xd
mov ecx, esi
mov dword [ebp + 0x300], 1
call fcn.00458330
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4598b4.1
mov edx, dword [edi]
push edx
call fcn.00460ea0
add esp, 4
test eax, eax
je 0x459efa
mov dword [esi + 0x10], 0x2a
jmp 0x459f10
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push esi
call fcn.004784e0
add esp, 0xc
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x208]
mov eax, dword [esi + 0x20c]
mov edx, ecx
or edx, eax
je 0x459f40
mov edx, dword [esi + 0x4f4]
cmp edx, eax
jg case.0x4598b4.1
jl 0x459f40
mov eax, dword [esi + 0x4f0]
cmp eax, ecx
jae case.0x4598b4.1
mov ecx, dword [esi + 0x210]
mov eax, dword [esi + 0x214]
mov edx, ecx
or edx, eax
je 0x459f70
mov edx, dword [esi + 0x4ec]
cmp edx, eax
jg case.0x4598b4.1
jl 0x459f70
mov eax, dword [esi + 0x4e8]
cmp eax, ecx
jae case.0x4598b4.1
mov eax, 0xd
mov ecx, esi
call fcn.00458330
jmp case.0x4598b4.1
mov eax, dword [esi + 0x20c]
mov ecx, dword [esi + 0x208]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x18], ebx
jl 0x459fff
jg 0x459f9d
cmp ecx, ebx
jbe 0x459fff
mov edx, dword [esi + 0x4f4]
cmp edx, eax
jl 0x459fff
jg 0x459fb3
mov eax, dword [esi + 0x4f0]
cmp eax, ecx
jbe 0x459fff
mov eax, 0xe
mov ecx, esi
call fcn.00458330
mov eax, dword [esi + 0x2b8]
cmp eax, ebx
jne 0x459fce
mov eax, 0x4000
mov ecx, dword [esi + 0x4f4]
mov edx, dword [esi + 0x4f0]
push eax
mov eax, dword [esi + 0x20c]
push ecx
mov ecx, dword [esi + 0x208]
push edx
push eax
push ecx
call fcn.00479770
push eax
push esi
call fcn.00458ca0
add esp, 0x1c
jmp case.0x4598b4.1
mov eax, dword [esi + 0x214]
cmp eax, ebx
mov ecx, dword [esi + 0x210]
jl 0x45a062
jg 0x45a015
cmp ecx, ebx
jbe 0x45a062
mov edx, dword [esi + 0x4ec]
cmp edx, eax
jl 0x45a062
jg 0x45a02b
mov eax, dword [esi + 0x4e8]
cmp eax, ecx
jbe 0x45a062
mov eax, 0xe
mov ecx, esi
call fcn.00458330
mov eax, dword [esi + 0x2b8]
cmp eax, ebx
jne 0x45a046
mov eax, 0x4000
mov ecx, dword [esi + 0x4ec]
mov edx, dword [esi + 0x4e8]
push eax
mov eax, dword [esi + 0x214]
push ecx
mov ecx, dword [esi + 0x210]
jmp 0x459fe8
mov eax, dword [edi]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.004793d0
add esp, 8
mov dword [esi + 0x10], eax
test byte [esi + 0xf8], 1
jne 0x45a086
mov ecx, dword [edi]
mov dword [ecx + 0x300], ebx
test byte [esi + 0xf8], 2
jne 0x45a097
mov edx, dword [edi]
mov dword [edx + 0x304], ebx
cmp dword [esp + 0x20], ebx
jne 0x45a0a3
cmp dword [esi + 0x10], 0x38
jne 0x45a0d1
mov ecx, dword [edi]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00479ee0
add esp, 8
test eax, eax
jne 0x45a0d1
xor edx, edx
cmp dword [esp + 0x18], ebx
setne dl
mov ebp, edx
cmp ebp, ebx
je 0x45a0d1
mov dword [esi + 0x10], ebx
mov dword [esp + 0x20], 1
cmp dword [esi + 0x10], ebx
je 0x45a11d
mov eax, dword [edi]
mov ecx, dword [eax + 0x2c0]
test byte [ecx + 0x40], 2
jne 0x45a0ee
mov dword [eax + 0x24c], 1
push esi
call fcn.00450800
mov edx, dword [esi + 0x10]
push ebx
push edx
push edi
call fcn.00457330
add esp, 0x10
mov eax, dword [esp + 0x18]
cmp eax, ebx
je case.0x4598b4.1
push eax
call dword [0x4a3684]
add esp, 4
jmp case.0x4598b4.1
cmp dword [esp + 0x20], ebx
je 0x45a102
push esi
call fcn.00450800
mov eax, dword [edi]
mov ecx, dword [eax + 0x30c]
push ecx
push esi
call fcn.00452460
mov edx, dword [edi]
mov eax, dword [edx + 0x30c]
add esp, 0xc
cmp dword [eax], ebx
je 0x45a156
mov eax, dword [eax]
mov ecx, dword [eax]
push 1
push ecx
call fcn.00458ca0
add esp, 8
mov edx, dword [esp + 0x34]
push edx
call fcn.00458ed0
mov eax, dword [esi + 0x10c]
add esp, 4
cmp eax, ebx
jne 0x45a1d5
cmp ebp, ebx
jne 0x45a1ea
cmp dword [esi + 0x108], ebx
je 0x45a1bc
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x45a18b
push eax
call dword [0x4a3684]
add esp, 4
mov eax, dword [esi + 0x108]
push 1
push eax
push esi
mov dword [esp + 0x24], eax
mov dword [esi + 0x108], ebx
call fcn.00479bf0
add esp, 0xc
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x45a1b4
mov dword [esp + 0x18], ebx
jmp 0x45a1bc
mov dword [esp + 0x10], 1
mov eax, 0xf
mov ecx, esi
call fcn.00458330
mov dword [esp + 0xc], 0xffffffff
jmp 0x45a102
cmp ebp, ebx
jne 0x45a1ea
mov dword [esp + 0x18], eax
mov dword [esi + 0x10c], ebx
mov ebp, 3
jmp 0x45a1ef
mov ebp, 2
push ebx
push ebx
push edi
call fcn.00457330
add esp, 0xc
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x45a102
mov eax, dword [esp + 0x18]
push ebp
push eax
push esi
call fcn.00479bf0
add esp, 0xc
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x45a102
mov eax, 2
mov ecx, esi
call fcn.00458330
mov dword [esp + 0xc], 0xffffffff
jmp case.0x4598b4.1
mov eax, dword [edi]
mov dword [esp + 0xc], 0xffffffff
cmp eax, ebx
je 0x45a273
mov ecx, dword [eax + 0x30c]
push ecx
push esi
call fcn.00452460
mov edx, dword [esp + 0x3c]
push edx
call fcn.00458ed0
push ebx
push ebx
push edi
call fcn.00457330
add esp, 0x18
cmp dword [esi + 0x10], ebx
jne 0x45a26d
mov dword [esi + 0x10], eax
cmp dword [edi], ebx
je 0x45a273
mov dword [edi], ebx
cmp dword [esi + 0x44c], ebx
je 0x45a28f
cmp dword [esi + 0x8f40], 6
je 0x45a28f
xor eax, eax
mov ecx, esi
call fcn.00458330
jmp case.0x4598b4.1
mov eax, 0x10
mov ecx, esi
call fcn.00458330
jmp case.0x4598b4.1
push ebx
push esi
mov dword [edi], ebx
call fcn.00458ca0
add esp, 8
mov ecx, dword [esi + 0xc]
cmp ecx, 0x10
jge 0x45a32f
mov eax, dword [edi]
cmp dword [esi + 0x10], ebx
je 0x45a36b
mov dword [esi + 0x8f00], ebx
cmp eax, ebx
je 0x45a315
mov dword [eax + 0x304], ebx
mov eax, dword [edi]
mov dword [eax + 0x300], ebx
mov ecx, dword [edi]
mov edx, dword [ecx + 0x308]
push edx
push esi
call fcn.00452460
mov eax, dword [edi]
mov ecx, dword [eax + 0x30c]
push ecx
push esi
call fcn.00452460
mov edx, dword [esp + 0x44]
push edx
call fcn.00458ed0
add esp, 0x14
cmp dword [esp + 0x10], ebx
je 0x45a323
mov eax, dword [edi]
push ebx
push eax
call fcn.004566e0
add esp, 8
mov dword [edi], ebx
jmp 0x45a323
cmp ecx, 2
jne 0x45a323
push esi
call fcn.00450800
add esp, 4
mov eax, 0x10
mov ecx, esi
call fcn.00458330
mov ebp, dword [esp + 0xc]
cmp dword [esi + 0xc], 0x10
jne 0x45a362
mov eax, dword [esp + 0x34]
lea ecx, [esi + 0x14]
mov dword [ecx], 1
mov dword [ecx + 4], esi
mov edx, dword [esi + 0x10]
mov dword [ecx + 8], edx
call fcn.00458450
mov ebp, eax
mov eax, 0x11
mov ecx, esi
call fcn.00458330
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x24
ret
cmp eax, ebx
je 0x45a32f
push eax
call fcn.00460ea0
add esp, 4
test eax, eax
je 0x45a32f
mov ecx, dword [edi]
xor eax, eax
mov dword [esi + 0x10], 0x2a
mov dword [ecx + 0x24c], 1
cmp dword [esi + 0xc], 0xf
mov ecx, esi
setge al
add eax, 0xf
call fcn.00458330
or ebp, 0xffffffff
jmp 0x45a333
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
pop ebp
mov eax, 2
pop ebx
add esp, 0x24
ret