Function at 0x451bf0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ace60
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push esi
push edi
mov eax, dword [0x62c2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 3
mov esi, 0x5ef390
mov eax, dword [ebp + 0xc]
mov ecx, esi
test eax, eax
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00411810
mov byte [ebp - 4], 4
mov ecx, esi
mov eax, dword [ebp + 0x10]
test eax, eax
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.00411810
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x4c], 0
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.00433a70
mov ecx, esi
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
mov eax, 0x60011c
mov edi, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x451cc0
test dl, dl
je 0x451cbc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x451cc0
add ecx, 2
add eax, 2
test dl, dl
jne 0x451ca0
xor eax, eax
jmp 0x451cc5
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x24]
setne bl
test eax, eax
je 0x451cfc
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x451cf5
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x451cec
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x451ce3
push edx
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x24], 0
test bl, bl
je 0x451d0a
push 0x5c
lea ecx, [ebp + 8]
call fcn.00433600
lea edx, [ebp + 8]
push 0x600164
cmp edi, 0xffffffff
je 0x451e6c
lea ecx, [ebp - 0x58]
call fcn.00433890
add esp, 4
mov eax, dword [eax]
test eax, eax
push 0
push 0x8000080
push 4
push 0
push 1
cmovne esi, eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x58]
mov esi, eax
mov dword [ebp - 0x3c], esi
test ecx, ecx
je 0x451d7d
dec dword [ecx - 4]
lea edx, [ecx - 0xc]
jne 0x451d76
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x451d6d
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x451d64
push edx
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x58], 0
cmp esi, 0xffffffff
jne 0x451e3a
push dword [ebp - 0x38]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x40]
call esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x451dc9
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x451dc2
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x451db9
nop
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x451db0
push edx
call fcn.00582cf0
add esp, 4
mov dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x451dfb
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x451df4
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x451deb
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x451de2
push edx
call fcn.00582cf0
add esp, 4
mov dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x451e26
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x451e26
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x451e1d
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x451e14
push edx
call fcn.00582cf0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
jne 0x451f43
push 0x625638
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
call fcn.00586852
lea ecx, [ebp - 0x54]
call fcn.00433890
add esp, 4
mov eax, dword [eax]
test eax, eax
push 0
push 0x8000080
push 3
push 0
push 1
cmovne esi, eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], esi
test eax, eax
je 0x451ece
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x451ec7
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x451ebe
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x451eb5
push edx
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x54], 0
cmp esi, 0xffffffff
jne 0x451ef5
push 0x625638
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x4c], 1
push eax
mov dword [ebp - 0xb8], 1
call fcn.00586852
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
jne 0x451f1d
push 0x625638
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
push eax
call fcn.00586852
test ebx, ebx
jne 0x451f43
push 0x625638
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x4c], 1
push eax
mov dword [ebp - 0xa4], 1
call fcn.00586852
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x451f6a
push 0x625638
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push eax
call fcn.00586852
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x4522a9
push ebx
lea ecx, [ebp - 0x34]
call fcn.00432ce0
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x50]
push 0
push eax
push ebx
push edi
push esi
mov dword [ebp - 0x44], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45228e
cmp ebx, dword [ebp - 0x50]
jne 0x45228e
mov ebx, dword [ebp - 0x30]
lea ecx, [edi + 8]
mov dword [ebp - 0x20], ebx
lea eax, [ebx - 8]
shr eax, 1
mov dword [ebp - 0x18], eax
cmp ebx, 8
jb 0x45224a
cmp dword [edi], 0x67655250
jne 0x45224a
cmp dword [edi + 4], 1
jne 0x45224a
push 0x5b
lea edx, [ebp - 0x18]
call fcn.00452500
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x38]
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4522b1
dec dword [ebp - 0x18]
lea edx, [ebp - 0x18]
add eax, 2
push 0x3b
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.00452500
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4522b1
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452020
sub ecx, edx
mov edx, ebx
sub edx, dword [ebp - 0x1c]
sar ecx, 1
sar edx, 1
lea eax, [ecx + 1]
cmp edx, eax
je 0x452052
push edx
push esi
push dword [ebp - 0x1c]
call fcn.00585d97
add esp, 0xc
test eax, eax
jne 0x452203
dec dword [ebp - 0x18]
lea edx, [ebp - 0x18]
add ebx, 2
push 0x3b
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.00452500
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x452081
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push 0x625638
push eax
call fcn.00586852
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452086
sub ecx, edx
mov edx, ebx
sub edx, dword [ebp - 0x1c]
sar ecx, 1
sar edx, 1
lea eax, [ecx + 1]
cmp edx, eax
jne 0x452203
push edx
push edi
push dword [ebp - 0x1c]
call fcn.00585d97
add esp, 0xc
test eax, eax
jne 0x452203
dec dword [ebp - 0x18]
lea edx, [ebp - 0x18]
add ebx, 2
push 0x3b
mov ecx, ebx
call fcn.00452500
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4520e8
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push 0x625638
push eax
call fcn.00586852
mov eax, ecx
sub eax, ebx
cmp eax, 4
jne 0x4521e8
cmp dword [ebx], eax
jne 0x4521e8
dec dword [ebp - 0x18]
lea edx, [ebp - 0x18]
add ecx, 2
push 0x3b
mov dword [ebp - 0x1c], ecx
call fcn.00452500
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x452130
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb4]
push 0x625638
push eax
call fcn.00586852
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
sub eax, ecx
cmp eax, 4
jne 0x4521cd
cmp dword [ecx], eax
jne 0x4521cd
dec dword [ebp - 0x18]
lea edx, [ebp - 0x18]
add ebx, 2
push 0x5d
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.00452500
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x452177
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push 0x625638
push eax
call fcn.00586852
mov edx, dword [ebp - 0x48]
cmp edx, 0xffffffff
je 0x452186
mov eax, dword [ebp - 0x1c]
mov dword [eax], edx
jmp 0x45218c
add ebx, 2
dec dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x452203
cmp edx, 0xffffffff
jne 0x4521bd
mov eax, dword [ebp - 0x44]
sub eax, ebx
add eax, dword [ebp - 0x20]
push eax
push ebx
push ecx
call fcn.00581fd0
mov eax, dword [ebp - 0x24]
add esp, 0xc
sub eax, ebx
mov ebx, dword [ebp - 0x20]
add ebx, eax
mov dword [ebp - 0x30], ebx
jmp 0x45241f
mov ebx, dword [ebp - 0x20]
test ecx, ecx
jne 0x45241f
jmp 0x4522b7
push 0x625638
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0
push eax
call fcn.00586852
push 0x625638
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
call fcn.00586852
cmp word [ebx], 0x5d
je 0x452235
push 0x5d
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.00452500
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x452235
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xac]
push 0x625638
push eax
call fcn.00586852
dec dword [ebp - 0x18]
lea ecx, [ebx + 2]
push 0x5b
lea edx, [ebp - 0x18]
call fcn.00452500
jmp 0x451fe4
push dword [ebp - 0x38]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x40]
call esi
lea ecx, [ebp - 0x34]
call fcn.00432cb0
lea ecx, [ebp + 8]
call fcn.004331d0
lea ecx, [ebp + 0xc]
call fcn.004331d0
lea ecx, [ebp + 0x10]
call fcn.004331d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x625638
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
push eax
call fcn.00586852
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x38]
jmp 0x4522b4
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x48]
cmp edx, 0xffffffff
je 0x45241c
test ebx, ebx
jne 0x4522ee
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x67655250
push eax
lea ecx, [ebp - 0x34]
call fcn.00433050
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00433050
push 2
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x5b
push eax
lea ecx, [ebp - 0x34]
call fcn.00433050
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x452310
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452310
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.00433050
push 2
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0x3b
push eax
lea ecx, [ebp - 0x34]
call fcn.00433050
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452350
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.00433050
push 2
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 0x3b
push eax
lea ecx, [ebp - 0x34]
call fcn.00433050
push 4
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 4
push eax
lea ecx, [ebp - 0x34]
call fcn.00433050
push 2
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x3b
push eax
lea ecx, [ebp - 0x34]
call fcn.00433050
push 4
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 4
push eax
lea ecx, [ebp - 0x34]
call fcn.00433050
push 2
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 0x3b
push eax
lea ecx, [ebp - 0x34]
call fcn.00433050
push 4
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x34]
call fcn.00433050
push 2
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x5d
push eax
lea ecx, [ebp - 0x34]
call fcn.00433050
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
jmp 0x45241f
mov ebx, dword [ebp - 0x20]
push 0
push 0
push 0
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x45244e
push 0x625638
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0
push eax
call fcn.00586852
push 0
lea eax, [ebp - 0x50]
push eax
push ebx
push dword [ebp - 0x44]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45247a
cmp ebx, dword [ebp - 0x50]
jne 0x45247a
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebx, 1
jmp 0x4524a4
push 0x625638
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0
push eax
call fcn.00586852
mov eax, 0x45249b
ret
mov eax, dword [ebp - 0x3c]
cmp eax, 0xffffffff
je 0x4524b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push esi
call edi
lea ecx, [ebp - 0x34]
call fcn.00432cb0
lea ecx, [ebp + 8]
call fcn.004331d0
lea ecx, [ebp + 0xc]
call fcn.004331d0
lea ecx, [ebp + 0x10]
call fcn.004331d0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret