Function at 0x459010
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x489469
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x49e7c0]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49e7c0]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov esi, dword [esp + 0xd8]
mov edi, ecx
mov ecx, dword [esp + 0xcc]
xor ebp, ebp
mov eax, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0xb4], 7
mov dword [esp + 0xb0], ebp
mov word [esp + 0xa0], bp
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x459084
sub eax, ebx
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0xa4]
call fcn.00402680
cmp dword [esp + 0xb4], 8
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0xc4], ebp
jae 0x4590c0
lea ebx, [esp + 0xa0]
push edi
call fcn.0043f1e0
add esp, 4
cmp esi, ebp
mov byte [edi + 0x144], 0
je 0x4590e0
push esi
lea ecx, [edi + 0x398]
call fcn.0040f840
mov eax, dword [esp + 0xd0]
cmp eax, 0xffffffff
jne 0x4590f1
mov eax, dword [0x4a05e4]
push ebp
push ebp
push ebp
mov ecx, edi
mov dword [edi + 0x118], eax
call fcn.0044d0b0
cmp dword [edi + 0x118], 2
je 0x459152
push 0xbb8
push ebx
push 1
mov ecx, edi
call fcn.0044d0b0
sub esp, 0x1c
mov ecx, esp
mov eax, ebx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebp
mov dword [esp + 0x34], esp
mov word [ecx + 4], bp
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x459135
sub eax, esi
sar eax, 1
push eax
push ebx
call fcn.00402680
mov ecx, edi
call fcn.004764f0
mov eax, 7
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], bp
mov byte [esp + 0x17], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebp
mov word [esp + 0x68], bp
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], ebp
mov word [esp + 0x84], bp
mov eax, ebx
mov byte [esp + 0xc4], 3
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4591a0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x30]
call fcn.00402680
push ebx
call fcn.004011b0
mov esi, 8
add esp, 4
cmp eax, esi
mov dword [esp + 0x44], eax
jne 0x459532
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x459322
cmp eax, 3
je 0x459322
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
cmp eax, 0x4c7
mov byte [esp + 0xc4], 4
jne 0x459218
lea ecx, [esp + 0x48]
push ecx
push 0x1c7
jmp 0x459233
cmp eax, 0x35
jne 0x459229
lea edx, [esp + 0x48]
push edx
push 0x1c8
jmp 0x459233
lea eax, [esp + 0x48]
push eax
push 0x1c9
call fcn.00442450
mov eax, dword [esp + 0x54]
add esp, 8
cmp dword [esp + 0x60], esi
jae 0x459249
lea eax, [esp + 0x4c]
push 0xfa0
push eax
push 2
mov ecx, edi
call fcn.0044d0b0
push ebp
push ebp
mov ecx, edi
call fcn.00449370
mov ecx, dword [edi + 8]
push ebp
push ebp
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [esp + 0x60], esi
jb 0x459280
mov edx, dword [esp + 0x4c]
push edx
call fcn.004775de
add esp, 4
cmp dword [esp + 0x98], esi
mov edi, 7
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
jb 0x4592ab
mov eax, dword [esp + 0x84]
push eax
call fcn.004775de
add esp, 4
cmp dword [esp + 0x7c], esi
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebp
mov word [esp + 0x84], bp
jb 0x4592d4
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004775de
add esp, 4
cmp dword [esp + 0x40], esi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebp
mov word [esp + 0x68], bp
jb 0x4592f4
mov edx, dword [esp + 0x2c]
push edx
call fcn.004775de
add esp, 4
mov dword [esp + 0x40], edi
cmp dword [esp + 0xb4], esi
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], bp
jb 0x45931a
mov eax, dword [esp + 0xa0]
push eax
call fcn.004775de
add esp, 4
or eax, 0xffffffff
jmp 0x459df5
lea ecx, [esp + 0x28]
push ecx
push ebx
call fcn.00442660
mov eax, dword [esp + 0x34]
add esp, 8
cmp dword [esp + 0x40], esi
jae 0x45933e
lea eax, [esp + 0x2c]
push eax
call fcn.004011b0
add esp, 4
cmp eax, ebp
mov dword [esp + 0x44], eax
je 0x459449
cmp eax, esi
je 0x459449
cmp eax, 7
je 0x459449
push ebx
lea ecx, [esp + 0x68]
call fcn.00402a20
lea edx, [esp + 0x64]
push edx
call fcn.00442350
add esp, 4
test al, al
jne 0x4596b6
push ebx
call fcn.00443f80
add esp, 4
cmp eax, 0xff
jne 0x459577
push ebx
call fcn.004010b0
add esp, 4
cmp eax, 4
jne 0x4593af
mov byte [esp + 0x17], 1
jmp 0x459577
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
lea eax, [esp + 0x48]
push eax
push 0x1a3
mov byte [esp + 0xcc], 6
call fcn.00442450
mov eax, dword [esp + 0x54]
add esp, 8
cmp dword [esp + 0x60], esi
jae 0x4593e8
lea eax, [esp + 0x4c]
push 0xfa0
push eax
push 2
mov ecx, edi
call fcn.0044d0b0
push ebp
push ebp
mov ecx, edi
call fcn.00449370
mov ecx, dword [edi + 8]
push ebp
push ebp
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x48]
call fcn.00401f00
lea ecx, [esp + 0x80]
call fcn.00401f00
lea ecx, [esp + 0x64]
call fcn.00401f00
lea ecx, [esp + 0x28]
call fcn.00401f00
lea ecx, [esp + 0x9c]
call fcn.00401f00
mov eax, 0xfffffffe
jmp 0x459df5
mov ebx, 7
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
lea eax, [esp + 0x48]
push eax
push 0x1a1
mov byte [esp + 0xcc], 5
call fcn.00442450
mov eax, dword [esp + 0x54]
add esp, 8
cmp dword [esp + 0x60], esi
jae 0x459483
lea eax, [esp + 0x4c]
push 0xfa0
push eax
push 2
mov ecx, edi
call fcn.0044d0b0
push ebp
push ebp
mov ecx, edi
call fcn.00449370
mov ecx, dword [edi + 8]
push ebp
push ebp
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [esp + 0x60], esi
jb 0x4594ba
mov edx, dword [esp + 0x4c]
push edx
call fcn.004775de
add esp, 4
cmp dword [esp + 0x98], esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
jb 0x4594e0
mov eax, dword [esp + 0x84]
push eax
call fcn.004775de
add esp, 4
cmp dword [esp + 0x7c], esi
mov dword [esp + 0x98], ebx
mov dword [esp + 0x94], ebp
mov word [esp + 0x84], bp
jb 0x459509
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004775de
add esp, 4
cmp dword [esp + 0x40], esi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ebp
mov word [esp + 0x68], bp
jb 0x459529
mov edx, dword [esp + 0x2c]
push edx
call fcn.004775de
add esp, 4
mov dword [esp + 0x40], ebx
jmp 0x4592f8
cmp eax, 7
lea ecx, [esp + 0x28]
jne 0x4596a9
push ecx
push ebx
call fcn.00442660
mov eax, dword [esp + 0x34]
add esp, 8
cmp dword [esp + 0x40], esi
jae 0x459557
lea eax, [esp + 0x2c]
push eax
call fcn.004011b0
push ebx
mov dword [esp + 0x4c], eax
call fcn.00443f80
add esp, 8
cmp dword [esp + 0x44], ebp
jne 0x45959a
cmp eax, 0xff
je 0x45959a
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x70]
call fcn.00402360
push ebx
lea ecx, [esp + 0x84]
call fcn.00402a20
jmp 0x4596b6
mov ebx, 7
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
lea eax, [esp + 0x48]
push eax
push 0x1a3
mov byte [esp + 0xcc], bl
call fcn.00442450
mov eax, dword [esp + 0x54]
add esp, 8
cmp dword [esp + 0x60], esi
jae 0x4595d3
lea eax, [esp + 0x4c]
push 0xfa0
push eax
push 2
mov ecx, edi
call fcn.0044d0b0
push ebp
push ebp
mov ecx, edi
call fcn.00449370
mov ecx, dword [edi + 8]
push ebp
push ebp
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [esp + 0x60], esi
jb 0x45960a
mov edx, dword [esp + 0x4c]
push edx
call fcn.004775de
add esp, 4
cmp dword [esp + 0x98], esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
jb 0x459630
mov eax, dword [esp + 0x84]
push eax
call fcn.004775de
add esp, 4
cmp dword [esp + 0x7c], esi
mov dword [esp + 0x98], ebx
mov dword [esp + 0x94], ebp
mov word [esp + 0x84], bp
jb 0x459659
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004775de
add esp, 4
cmp dword [esp + 0x40], esi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ebp
mov word [esp + 0x68], bp
jb 0x459679
mov edx, dword [esp + 0x2c]
push edx
call fcn.004775de
add esp, 4
cmp dword [esp + 0xb4], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], bp
jb 0x45969f
mov eax, dword [esp + 0xa0]
push eax
call fcn.004775de
add esp, 4
mov eax, 0xfffffffd
jmp 0x459df5
push 0xffffffffffffffff
push ebp
push ecx
lea ecx, [esp + 0x70]
call fcn.00402360
cmp dword [esp + 0x3c], 2
jne 0x4596df
cmp dword [esp + 0x40], esi
mov eax, dword [esp + 0x2c]
jae 0x4596cb
lea eax, [esp + 0x2c]
cmp word [eax + 2], 0x3a
jne 0x4596df
push 0x5c
push 1
lea ecx, [esp + 0x30]
call fcn.004022b0
mov eax, dword [edi + 0x140]
cmp eax, ebp
je 0x4596fb
mov edx, dword [eax + 0x7c]
push ebp
push 2
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [edi + 0x118]
sub esi, 2
neg esi
sbb esi, esi
and esi, dword [0x4a00fc]
push ebx
call fcn.004010b0
add esp, 4
cmp eax, 3
je 0x45971e
xor esi, esi
push 0xa0
call fcn.00477736
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
mov byte [esp + 0xc4], 8
je 0x459762
cmp dword [esp + 0x7c], 8
mov edx, dword [edi + 8]
mov ecx, dword [esp + 0x68]
jae 0x45974d
lea ecx, [esp + 0x68]
push esi
push 1
push edx
mov edx, dword [0x4a066c]
push edx
push ecx
mov ecx, eax
call fcn.00411df0
jmp 0x459764
xor eax, eax
cmp eax, ebp
mov byte [esp + 0xc4], 3
mov dword [edi + 0x140], eax
jne 0x459816
mov esi, 8
cmp dword [esp + 0x98], esi
jb 0x459798
mov eax, dword [esp + 0x84]
push eax
call fcn.004775de
add esp, 4
cmp dword [esp + 0x7c], esi
mov edi, 7
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebp
mov word [esp + 0x84], bp
jb 0x4597c6
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004775de
add esp, 4
cmp dword [esp + 0x40], esi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebp
mov word [esp + 0x68], bp
jb 0x4597e6
mov edx, dword [esp + 0x2c]
push edx
call fcn.004775de
add esp, 4
cmp dword [esp + 0xb4], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], bp
jb 0x45980c
mov eax, dword [esp + 0xa0]
push eax
call fcn.004775de
add esp, 4
mov eax, 0xfffffff6
jmp 0x459df5
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
mov dword [eax + 0x40], ecx
mov ecx, dword [edi + 0x140]
push ebp
lea edx, [esp + 0x88]
add ecx, 0x4c
push edx
call fcn.00402360
mov eax, dword [edi + 0x140]
mov ecx, dword [esp + 0xd4]
mov dword [eax + 0x68], ecx
mov edx, dword [edi + 0x140]
mov eax, dword [edi + 0x13c]
mov dword [edx + 0x6c], eax
mov ecx, dword [edi + 0x140]
push ecx
call fcn.00408160
add esp, 4
test eax, eax
je 0x459927
mov esi, dword [edi + 0x140]
cmp esi, ebp
je 0x459886
mov ecx, esi
call fcn.00411ee0
push esi
call fcn.004775de
add esp, 4
mov dword [edi + 0x140], ebp
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
lea edx, [esp + 0x48]
push edx
push 0x1a4
mov byte [esp + 0xcc], 9
call fcn.00442450
mov eax, dword [esp + 0x54]
add esp, 8
cmp dword [esp + 0x60], 8
jae 0x4598c6
lea eax, [esp + 0x4c]
push 0xfa0
push eax
push 2
mov ecx, edi
call fcn.0044d0b0
push ebp
push ebp
mov ecx, edi
call fcn.00449370
mov eax, dword [edi + 8]
push ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x48]
call fcn.00401f00
lea ecx, [esp + 0x80]
call fcn.00401f00
lea ecx, [esp + 0x64]
call fcn.00401f00
lea ecx, [esp + 0x28]
call fcn.00401f00
lea ecx, [esp + 0x9c]
call fcn.00401f00
mov eax, 0xfffffffc
jmp 0x459df5
lea ecx, [esp + 0x28]
push ecx
lea ecx, [edi + 0x11c]
call fcn.00456b00
cmp dword [esp + 0x44], ebp
jne 0x459951
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x30]
push edx
mov ecx, 0x49e498
call fcn.00402360
jmp 0x45998d
mov eax, dword [esp + 0x2c]
mov esi, 8
cmp dword [esp + 0x40], esi
jae 0x459964
lea eax, [esp + 0x2c]
push eax
call fcn.0042fbe0
add esp, 4
test eax, eax
jne 0x45998d
cmp dword [esp + 0x40], esi
mov eax, dword [esp + 0x2c]
jae 0x45997f
lea eax, [esp + 0x2c]
push 0x49e498
push eax
call fcn.004425b0
add esp, 8
cmp dword [edi + 0x118], 2
je 0x459cfe
cmp dword [0x49e4b0], 8
mov eax, dword [0x49e49c]
jae 0x4599ad
mov eax, 0x49e49c
push 1
push eax
mov ecx, 0x4a0dd0
call fcn.00427f50
cmp dword [0x4a05e8], 0
jle 0x459cfe
cmp byte [esp + 0x17], 0
mov ebp, 8
jne 0x4599e1
cmp dword [esp + 0x40], ebp
mov ebx, dword [esp + 0x2c]
jae 0x4599e1
lea ebx, [esp + 0x2c]
mov dword [esp + 0x18], ebx
xor edi, edi
jmp 0x4599f0
mov ecx, dword [0x4a1348]
test ecx, ecx
mov esi, dword [0x4a134c]
jne 0x459a04
xor eax, eax
jmp 0x459a19
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jge 0x459a54
push edi
mov ecx, 0x4a1344
call fcn.0040ae60
cmp dword [eax + 0x18], ebp
jb 0x459a32
mov eax, dword [eax + 4]
jmp 0x459a35
add eax, 4
push ebx
push eax
call fcn.0047863a
add esp, 8
test eax, eax
je 0x459a48
add edi, 1
jmp 0x4599f0
mov esi, dword [0x4a134c]
mov ecx, dword [0x4a1348]
test ecx, ecx
jne 0x459a5c
xor eax, eax
jmp 0x459a71
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
je 0x459b24
cmp edi, 1
jl 0x459c3f
lea ebx, [edi + edi*2]
shl ebx, 4
test ecx, ecx
je 0x459aa8
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [edi - 1]
cmp edx, eax
jb 0x459ab9
call fcn.0047770d
mov esi, dword [0x4a134c]
mov ecx, dword [0x4a1348]
test ecx, ecx
lea ebp, [ebx + ecx - 0x30]
je 0x459ad8
sub esi, ecx
mov eax, 0x2aaaaaab
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x459ae3
call fcn.0047770d
mov ecx, dword [0x4a1348]
push 0xffffffffffffffff
lea esi, [ebx + ecx]
push 0
push ebp
mov ecx, esi
call fcn.00402360
mov eax, dword [ebp + 0x1c]
add ebp, 0x20
push ebp
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], eax
call fcn.0040f840
mov esi, dword [0x4a134c]
mov ecx, dword [0x4a1348]
sub edi, 1
sub ebx, 0x30
cmp edi, 1
jge 0x459a88
jmp 0x459c3f
test ecx, ecx
jne 0x459b2c
xor eax, eax
jmp 0x459b41
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [0x4a05e8]
jge 0x459b6d
mov ecx, 0x4a1344
call fcn.0040ae40
add eax, 1
push eax
mov ecx, 0x4a1344
call fcn.00415ad0
mov esi, dword [0x4a134c]
mov ecx, dword [0x4a1348]
test ecx, ecx
jne 0x459b75
xor ebp, ebp
jmp 0x459b8a
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 3
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
add ebp, 0xffffffff
cmp ebp, 1
jl 0x459c3f
lea ebx, [ebp + ebp*2]
lea edx, [ebp - 1]
shl ebx, 4
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x459bc3
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x459bd4
call fcn.0047770d
mov esi, dword [0x4a134c]
mov ecx, dword [0x4a1348]
test ecx, ecx
lea edi, [ebx + ecx - 0x30]
je 0x459bf3
sub esi, ecx
mov eax, 0x2aaaaaab
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x459bfe
call fcn.0047770d
mov ecx, dword [0x4a1348]
push 0xffffffffffffffff
lea esi, [ebx + ecx]
push 0
push edi
mov ecx, esi
call fcn.00402360
mov eax, dword [edi + 0x1c]
add edi, 0x20
push edi
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], eax
call fcn.0040f840
sub dword [esp + 0x1c], 1
mov esi, dword [0x4a134c]
mov ecx, dword [0x4a1348]
sub ebp, 1
sub ebx, 0x30
cmp ebp, 1
jge 0x459ba4
test ecx, ecx
je 0x459c58
sub esi, ecx
mov eax, 0x2aaaaaab
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x459c63
call fcn.0047770d
mov ecx, dword [0x4a1348]
mov edi, dword [esp + 0x18]
mov eax, edi
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x459c70
sub eax, esi
sar eax, 1
push eax
push edi
call fcn.00402680
mov esi, dword [0x4a1348]
test esi, esi
je 0x459cab
mov ecx, dword [0x4a134c]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x459cb6
call fcn.0047770d
mov esi, dword [0x4a1348]
mov edx, dword [esp + 0xd4]
add edx, 1
mov dword [esi + 0x1c], edx
mov esi, dword [esp + 0x20]
test esi, esi
je 0x459cfe
mov ecx, dword [0x4a134c]
sub ecx, dword [0x4a1348]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x459cef
call fcn.0047770d
mov ecx, dword [0x4a1348]
push esi
add ecx, 0x20
call fcn.0040f840
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
xor esi, esi
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x4c]
mov ebx, 7
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], esi
push edx
mov word [ecx + 4], si
call fcn.00402360
mov edi, dword [esp + 0x40]
mov ecx, edi
call fcn.00476470
cmp dword [edi + 0x118], 2
jne 0x459d66
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
mov dword [edi + 0x210], esi
push esi
lea eax, [esp + 0x4c]
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], esi
push eax
mov word [ecx + 4], si
call fcn.00402360
mov ecx, edi
call fcn.004764f0
mov edi, 8
cmp dword [esp + 0x98], edi
jb 0x459d84
mov ecx, dword [esp + 0x84]
push ecx
call fcn.004775de
add esp, 4
cmp dword [esp + 0x7c], edi
mov dword [esp + 0x98], ebx
mov dword [esp + 0x94], esi
mov word [esp + 0x84], si
jb 0x459dad
mov edx, dword [esp + 0x68]
push edx
call fcn.004775de
add esp, 4
cmp dword [esp + 0x40], edi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], esi
mov word [esp + 0x68], si
jb 0x459dcd
mov eax, dword [esp + 0x2c]
push eax
call fcn.004775de
add esp, 4
cmp dword [esp + 0xb4], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], esi
mov word [esp + 0x2c], si
jb 0x459df3
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.004775de
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004777ea
add esp, 0xb4
ret 0x10