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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x70]
call fcn.00415ac0
mov byte [ebp - 4], 1
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x1d], 0
push 0xffffffffffffffff
push 0x2e
lea ecx, [ebp - 0x70]
call fcn.00419db0
mov dword [ebp - 0x3c], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x3c]
add ecx, 1
push ecx
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x70]
call fcn.0041aa00
mov byte [ebp - 4], 2
push 0
push 0x41da10
lea ecx, [ebp - 0x88]
call fcn.00419d70
cmp eax, 0xffffffff
je 0x419f56
mov byte [ebp - 0x1d], 1
cmp dword [ebp - 0x3c], 0xffffffff
je 0x419f73
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00419cc0
push eax
lea ecx, [ebp - 0x70]
call fcn.00417d10
jmp 0x419fa2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
jmp 0x41a924
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x98], esp
lea edx, [ebp + 8]
push edx
call fcn.00415ac0
call fcn.0041aa40
add esp, 0x18
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 0x1e]
test eax, eax
jne 0x419ff8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
jmp 0x41a924
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea ecx, [ebp + 8]
call fcn.00416f60
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x41a051
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
jmp 0x41a924
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x41a092
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
jmp 0x41a924
mov eax, dword [ebp - 0x1c]
sub eax, 0x200
mov ecx, dword [ebp - 0x18]
sbb ecx, 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x41a0b2
cmp dword [ebp - 0x18], 0
je 0x41a0ba
mov edx, dword [ebp - 0x1c]
or edx, dword [ebp - 0x18]
jne 0x41a0e9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
jmp 0x41a924
mov eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x18]
jne 0x41a17f
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
call fcn.00416f60
push eax
lea ecx, [ebp + 8]
call fcn.00416f60
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x41da18
lea ecx, [ebp - 0x70]
call fcn.00416f60
push eax
push 0x41da2c
call fcn.0041b1c0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
jmp 0x41a924
mov eax, dword [0x44a700]
mov ecx, dword [0x44a704]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp - 0x18], 0
jg 0x41a308
jl 0x41a1c7
cmp dword [ebp - 0x1c], 0x100000
ja 0x41a308
mov eax, dword [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x41a212
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
jmp 0x41a924
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x41a25d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
jmp 0x41a924
push 0
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x44a6d8
push 0x44a6c0
mov ecx, dword [ebp - 0x14]
xor edx, edx
push edx
push ecx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00401540
add esp, 0x18
push 0
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x18
push 0x44a6c0
call fcn.004015a0
add esp, 8
mov ecx, dword [ebp - 0x40]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41a88f
cmp dword [ebp - 0x18], 0
jg 0x41a470
jl 0x41a321
cmp dword [ebp - 0x1c], 0x8000000
jae 0x41a470
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x41a36d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
jmp 0x41a924
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x41a3b9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
jmp 0x41a924
xorps xmm0, xmm0
movlpd qword [ebp - 0xa4], xmm0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x100000
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x44a6d8
push 0x44a6c0
mov ecx, dword [ebp - 0x14]
xor edx, edx
push edx
push ecx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00401540
add esp, 0x18
push 0
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x18
push 0x44a6c0
call fcn.004015a0
add esp, 8
mov ecx, dword [ebp - 0x48]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x4c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41a88f
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x41a6b9
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x41a4c8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
jmp 0x41a924
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41a514
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
jmp 0x41a924
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x18]
jg 0x41a6b4
jl 0x41a546
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x1c]
ja 0x41a6b4
mov ecx, dword [ebp - 0x28]
add ecx, 0x100000
mov edx, dword [ebp - 0x24]
adc edx, 0
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x18]
jl 0x41a611
jg 0x41a581
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0x1c]
jbe 0x41a611
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x44a6d8
push 0x44a6c0
mov edx, dword [ebp - 0x14]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.00401540
add esp, 0x18
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x18
push 0x44a6c0
call fcn.004015a0
add esp, 8
jmp 0x41a69a
push 0
push 0
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push 0x100000
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x44a6d8
push 0x44a6c0
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push ecx
push eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00401540
add esp, 0x18
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x18
push 0x44a6c0
call fcn.004015a0
add esp, 8
mov edx, dword [ebp - 0x28]
add edx, 0x100000
mov eax, dword [ebp - 0x24]
adc eax, 0
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
jmp 0x41a52c
jmp 0x41a88f
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
call fcn.0041b730
cvtsd2ss xmm0, xmm0
divss xmm0, dword [0x41db08]
push ecx
movss dword [esp], xmm0
call fcn.00419de0
add esp, 4
call fcn.0041b6a0
mov dword [ebp - 0x8c], eax
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x41a735
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
jmp 0x41a924
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x41a781
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
jmp 0x41a924
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
push 0
push 0x100000
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0041b5b0
push 0
push 0x100000
push edx
push eax
call fcn.0041b660
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 0x50], 0
jmp 0x41a7d9
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [ebp - 0x8c]
jg 0x41a88f
push 0
push 0
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea edx, [ebp - 0x14]
push edx
push 0x100000
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x44a6d8
push 0x44a6c0
mov edx, dword [ebp - 0x14]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.00401540
add esp, 0x18
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x18
push 0x44a6c0
call fcn.004015a0
add esp, 8
mov ecx, dword [ebp - 0x38]
add ecx, 0x8000000
mov edx, dword [ebp - 0x34]
adc edx, 0
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
jmp 0x41a7d0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x9c], esp
lea edx, [ebp + 8]
push edx
call fcn.00415ac0
call fcn.0041aa40
add esp, 0x18
mov byte [ebp - 0x1f], al
movzx eax, byte [ebp - 0x1f]
test eax, eax
jne 0x41a8f5
lea ecx, [ebp - 0x70]
call fcn.00416f60
push eax
lea ecx, [ebp + 8]
call fcn.00416f60
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push str.____GOOD
lea ecx, [ebp - 0x70]
call fcn.00416f60
push eax
push str._s_s_n
call fcn.0041b1c0
add esp, 0xc
jmp 0x41a8fa
jmp 0x419ff8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret