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

Disassembly:
push 0xffffffffffffffff
push 0x4b5c79
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xd4]
mov esi, dword [esp + 0xdc]
mov edi, dword [esp + 0xe0]
mov ebp, dword [esp + 0xe4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
call fcn.00453cb0
xor ebx, ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0x60], 2
mov dword [esp + 0x64], 7
cmp esi, ebx
je 0x4540dc
push 0x10
push esi
lea ecx, [esp + 0x78]
push 0x10
push ecx
call fcn.004703a4
add esp, 0x10
mov eax, dword [esp + 0xd8]
cmp eax, ebx
jle 0x4540eb
mov dword [esp + 0x68], eax
cmp edi, ebx
jne 0x4540f4
mov edi, 0x4cb7d4
xor edx, edx
mov ecx, edi
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
lea eax, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x454110
sub ecx, eax
sar ecx, 1
push ecx
mov eax, edi
lea esi, [esp + 0x2c]
call fcn.004065f0
push 0xffffffffffffffff
push ebx
mov eax, esi
lea ecx, [esp + 0x88]
mov byte [esp + 0xd4], 1
call fcn.00406460
mov edi, 8
mov byte [esp + 0xcc], bl
cmp dword [esp + 0x40], edi
jb 0x454163
mov eax, dword [esp + 0x2c]
push eax
call fcn.0046fda3
add esp, 4
mov eax, ebp
cmp ebp, ebx
jne 0x45416e
mov eax, 0x4cb7d4
xor ecx, ecx
mov word [esp + 0x2c], cx
mov ecx, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x454186
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x2c]
call fcn.004065f0
push 0xffffffffffffffff
push ebx
mov eax, esi
lea ecx, [esp + 0xa4]
mov byte [esp + 0xd4], 2
call fcn.00406460
mov byte [esp + 0xcc], bl
cmp dword [esp + 0x40], edi
jb 0x4541d2
mov edx, dword [esp + 0x2c]
push edx
call fcn.0046fda3
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xb8], ebx
push eax
lea ebx, [esp + 0x28]
mov dword [esp + 0x70], 1
mov dword [esp + 0x28], 0xffffffff
call fcn.00453e90
test al, al
je 0x454257
mov edi, dword [esp + 0x24]
cmp edi, 0xffffffff
je 0x454257
xor ebx, ebx
cmp dword [0x504f90], ebx
jne 0x45422b
push 4
call fcn.004706a8
add esp, 4
cmp eax, ebx
je 0x454224
mov dword [eax], 0x4db8b8
jmp 0x454226
xor eax, eax
mov dword [0x504f90], eax
lea esi, [esp + 0x50]
call fcn.00455600
push ebx
mov esi, eax
mov dword [esp + 0x4c], ebx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esp + 0x4c]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x45428c
call fcn.00454020
lea esi, [esp + 0x50]
call fcn.00453d70
xor al, al
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.0046fdae
add esp, 0xbc
ret 0x14
call fcn.00454020
mov byte [esp + 0x17], bl
mov dword [esp + 0x1c], ebx
lea esp, [esp]
xor esi, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0xffffffff
push 8
mov byte [esp + 0xd0], 3
call fcn.004706a8
mov ebp, eax
add esp, 4
mov dword [esp + 0x28], ebp
cmp ebp, ebx
je 0x4542e3
mov esi, 8
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], ebx
push ebx
lea eax, [esp + 0x48]
push eax
push esi
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x58], ebx
call edi
test eax, eax
jne 0x45430d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x454535
mov esi, dword [ebp + 4]
push esi
mov dword [esp + 0x38], esi
call fcn.004706a8
mov ebp, eax
add esp, 4
mov dword [esp + 0x30], ebp
cmp ebp, ebx
je 0x45432f
mov dword [esp + 0x38], 1
mov edx, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x48]
push ecx
push esi
push ebp
push edx
call edi
test eax, eax
jne 0x454353
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x454535
cmp dword [0x504f90], ebx
jne 0x454378
push 4
call fcn.004706a8
add esp, 4
cmp eax, ebx
je 0x454371
mov dword [eax], 0x4db8b8
jmp 0x454373
xor eax, eax
mov dword [0x504f90], eax
cmp ebp, ebx
je 0x454535
push ebp
mov eax, esi
call fcn.00455210
mov esi, eax
cmp esi, ebx
je 0x454535
mov eax, dword [esi + 8]
mov dword [esp + 0x4c], eax
add eax, 0xfffffffb
cmp eax, 0x13
ja case.0x4543ac.9
movzx eax, byte [eax + 0x454580]
jmp dword [eax*4 + 0x454568]
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
je 0x454501
push 8
call fcn.004706a8
add esp, 4
cmp eax, ebx
je 0x4543da
mov dword [eax], 0x4db854
mov dword [eax + 4], esi
mov edi, eax
jmp 0x4543dc
xor edi, edi
mov ecx, dword [esp + 0x20]
push edi
push 5
push ecx
call ebp
add esp, 0xc
push edi
call fcn.0046fda3
add esp, 4
jmp 0x454501
cmp dword [esp + 0x18], ebx
je 0x454501
push 8
call fcn.004706a8
add esp, 4
cmp eax, ebx
je 0x45441c
mov dword [eax], 0x4db860
mov dword [eax + 4], esi
mov edi, eax
jmp 0x45441e
xor edi, edi
mov edx, dword [esp + 0x20]
push edi
push 6
push edx
call dword [esp + 0x24]
add esp, 0xc
push edi
call fcn.0046fda3
add esp, 4
jmp 0x454501
cmp dword [esp + 0x18], ebx
je 0x454501
push 8
call fcn.004706a8
add esp, 4
cmp eax, ebx
je 0x454460
mov dword [eax], 0x4db888
mov dword [eax + 4], esi
mov edi, eax
jmp 0x454462
xor edi, edi
push edi
push 0x18
mov eax, dword [esp + 0x28]
push eax
call dword [esp + 0x24]
add esp, 0xc
push edi
call fcn.0046fda3
add esp, 4
jmp 0x454501
cmp dword [esp + 0x18], ebx
je 0x454501
push 8
call fcn.004706a8
add esp, 4
cmp eax, ebx
je 0x4544a0
mov dword [eax], 0x4db874
mov dword [eax + 4], esi
mov edi, eax
jmp 0x4544a2
xor edi, edi
mov ecx, dword [esp + 0x20]
push edi
push 7
push ecx
call dword [esp + 0x24]
add esp, 0xc
push edi
call fcn.0046fda3
add esp, 4
jmp 0x454501
mov edx, dword [esi + 0x18]
mov byte [esp + 0x17], 1
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x18], ebx
je 0x454501
push 8
call fcn.004706a8
add esp, 4
cmp eax, ebx
je 0x4544ef
mov edi, eax
push edi
mov dword [eax], 0x4db894
mov dword [eax + 4], esi
push 8
jmp 0x454465
xor edi, edi
push edi
push 8
jmp 0x454465
mov dword [esp + 0x1c], 0x2710
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp dword [esp + 0x4c], 8
je 0x454535
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0046fda3
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
call fcn.0046fda3
mov edi, dword [esp + 0x28]
add esp, 4
jmp 0x4542a0
lea esi, [esp + 0x28]
call fcn.00464ba0
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x17], bl
je 0x454557
cmp dword [esp + 0x1c], ebx
jne 0x454557
mov bl, 1
lea esi, [esp + 0x50]
call fcn.00453d70
mov al, bl
jmp 0x454262