Function at 0x460869
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x49d068
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4c54e8]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c54e8]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x60]
je 0x4608bd
mov ecx, dword [0x4c7aac]
test ecx, ecx
je 0x460bd1
push 0x4a53c4
jmp 0x460bcc
mov eax, dword [esi + 0x64]
push eax
call fcn.004761f9
mov eax, dword [esi + 0x4c]
shl eax, 5
xor ebx, ebx
push eax
mov dword [esi + 0x64], ebx
call fcn.0046f927
add esp, 8
cmp eax, ebx
mov dword [esi + 0x64], eax
jne 0x4608f9
mov ecx, dword [0x4c7aac]
cmp ecx, ebx
je 0x460bd1
push 0x4a53b4
jmp 0x460bcc
mov ecx, esi
call fcn.0045f7a9
test al, al
je 0x460bbd
mov ecx, esi
call fcn.0045f739
test al, al
jne 0x460941
mov ecx, dword [0x4c7aac]
cmp ecx, ebx
je 0x460927
push 0x4a53a4
call fcn.004500d9
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x460bd1
push eax
call dword [fcn.0049f3f0]
mov dword [esi + 0x68], ebx
jmp 0x460bd1
xor ebp, ebp
cmp dword [esi + 0x4c], ebx
mov byte [esp + 0x17], 1
jbe 0x460b8d
mov dword [esp + 0x18], ebx
lea esp, [esp]
push ebp
lea ecx, [esi + 0x3c]
call fcn.0045fb69
push 0xffffffffffffffff
push ebx
mov edi, 0xf
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.00404749
push ebp
lea ecx, [esi + 0x50]
mov dword [esp + 0x80], ebx
call fcn.0045fb69
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00404749
mov edi, dword [esi + 0x64]
add edi, dword [esp + 0x18]
lea eax, [esp + 0x54]
push eax
mov ecx, esi
mov byte [esp + 0x80], 1
call fcn.0045fbc9
test al, al
je 0x460b3a
mov ecx, esi
call fcn.004607b9
mov byte [esp + 0x17], al
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x4609ee
push eax
call dword [fcn.0049f3f0]
mov dword [esi + 0x90], ebx
cmp byte [esp + 0x17], bl
je 0x460b26
mov ecx, dword [esi + 0x8c]
mov edx, dword [esi + 0x94]
push ecx
push edx
push edi
call fcn.0044c789
add esp, 0xc
lea eax, [esi + 0x20]
push eax
lea ecx, [esp + 0x3c]
call fcn.00407279
mov eax, dword [esp + 0x4c]
cmp eax, ebx
mov byte [esp + 0x7c], 2
je 0x460a46
add eax, 0xffffffff
push eax
lea ecx, [esp + 0x3c]
call fcn.0041c599
cmp byte [eax], 0x5c
je 0x460a46
push 0x5c
lea ecx, [esp + 0x3c]
call fcn.0040eea9
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x44]
call fcn.00404649
push 0xffffffffffffffff
push ebx
lea edx, [esi + 0x98]
push edx
lea ecx, [esp + 0x44]
call fcn.00404649
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x460a79
lea eax, [esp + 0x3c]
push 0x4a222c
push eax
call fcn.00477def
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x460b05
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x94]
push edi
push 1
push eax
push ecx
call fcn.004775cb
add esp, 0x10
cmp eax, 1
je 0x460ac3
mov ecx, dword [0x4c7aac]
cmp ecx, ebx
je 0x460abf
push 0x4a5398
call fcn.004500d9
mov byte [esp + 0x17], bl
push edi
call fcn.004777cb
add esp, 4
lea ecx, [esp + 0x38]
call fcn.00413419
lea ecx, [esp + 0x1c]
call fcn.00413419
lea ecx, [esp + 0x54]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00413419
add dword [esp + 0x18], 0x20
add ebp, 1
cmp ebp, dword [esi + 0x4c]
jb 0x460959
jmp 0x460b8d
mov ecx, dword [0x4c7aac]
cmp ecx, ebx
je 0x460b19
push 0x4a4d5c
call fcn.004500d9
lea ecx, [esp + 0x38]
mov byte [esp + 0x17], bl
call fcn.00413419
lea ecx, [esp + 0x1c]
call fcn.00413419
lea ecx, [esp + 0x54]
call fcn.00413419
jmp 0x460b8d
mov ecx, dword [0x4c7aac]
cmp ecx, ebx
je 0x460b4e
push 0x4a5388
call fcn.004500d9
mov edi, 0x10
cmp dword [esp + 0x34], edi
mov byte [esp + 0x17], bl
jb 0x460b6a
mov edx, dword [esp + 0x20]
push edx
call fcn.00475c61
add esp, 4
cmp dword [esp + 0x6c], edi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x460b8d
mov eax, dword [esp + 0x58]
push eax
call fcn.00475c61
add esp, 4
mov eax, dword [esi + 0x94]
cmp eax, ebx
je 0x460ba6
push eax
call fcn.00477204
add esp, 4
mov dword [esi + 0x94], ebx
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x460bb7
push eax
call dword [fcn.0049f3f0]
mov dword [esi + 0x68], ebx
mov al, byte [esp + 0x17]
jmp 0x460bd3
mov ecx, dword [0x4c7aac]
cmp ecx, ebx
je 0x460bd1
push 0x4a5374
call fcn.004500d9
xor al, al
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004761ea
add esp, 0x6c
ret