Function at 0x4e2430
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed118
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0
push 0x80
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xc0000000
push dword [ebp + 8]
call fcn.004b3660
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x4e25ad
call fcn.004bfba0
mov ecx, eax
test ecx, ecx
je 0x4e26dc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.004dfab0
add esp, 8
or esi, 0xffffffff
cmp dword [ebp + 0x1c], 0
je 0x4e2578
push 0x605dac
lea ecx, [ebp + 0x14]
call fcn.004bc730
push dword [ebp + 8]
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.004defa0
push 0x605dc0
lea ecx, [ebp + 0x14]
call fcn.004defa0
push 0x605dd8
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.004c3c70
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp + 8]
push eax
call fcn.004bc8d0
add esp, 0x18
push 0
push 0x605ddc
push dword [eax]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e253c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x1c]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e255a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x14]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e2578
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4e2597
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [ebp + 0xc]
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, 0xffffffff
jne 0x4e264e
cmp dword [ebp + 0x14], 4
jne 0x4e26d2
lea ecx, [ebp - 0x10]
xor esi, esi
push ecx
push dword [edi]
call eax
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x4e25e6
call fcn.004b34f0
test eax, eax
js 0x4e2649
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], esi
ja 0x4e25f0
cmp eax, 2
jb 0x4e2649
push 4
push 2
push 0
push 0
push 0
push dword [edi]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], esi
call fcn.004e1610
test eax, eax
js 0x4e2641
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4e2641
movzx ecx, word [eax]
mov edx, 0xfeff
cmp cx, dx
je 0x4e263c
mov edx, 0xfffe
cmp cx, dx
je 0x4e263c
push dword [ebp - 0x30]
push eax
call fcn.004e1140
add esp, 8
test eax, eax
je 0x4e2641
mov esi, 1
lea ecx, [ebp - 0x34]
call fcn.004de8c0
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 8], esi
cmp esi, 1
jne 0x4e269b
lea ecx, [ebp - 0x10]
push ecx
push dword [edi]
call eax
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x4e2672
call fcn.004b34f0
test eax, eax
js 0x4e2677
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x10]
jne 0x4e269b
push 0
lea eax, [ebp + 0x14]
mov dword [ebp + 8], 0xfeff
push eax
push 2
lea eax, [ebp + 8]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e269b
call fcn.004b34f0
push 2
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [edi]
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4e26bd
call fcn.004b34f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov esi, 1
jmp 0x4e264e
push 0x80004005
call fcn.004b3510
int3