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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b98f
mov eax, dword fs:[0]
push eax
sub esp, 0x390
mov eax, dword [0x498e04]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov word [ebp - 0xec], 0
push 0xc6
push 0
lea eax, [ebp - 0xea]
push eax
call fcn.00449d00
add esp, 0xc
lea ecx, [ebp - 0x120]
call fcn.0042bd40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x110]
call fcn.0042bd40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0042bd40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call fcn.0042e360
mov byte [ebp - 4], 3
call fcn.0041b210
test eax, eax
je 0x414ad2
push 0
push 1
push 1
push 0x484438
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x148]
call fcn.0042e460
mov dword [ebp - 0x128], eax
jmp 0x414af3
push 0
push 1
push 1
push 0x4843fc
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x148]
call fcn.0042e460
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x414b3d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call fcn.0042f6b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0042bef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x110]
call fcn.0042bef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.0042bef0
jmp 0x4151df
push 0x4843e8
lea ecx, [ebp - 0x370]
push ecx
lea ecx, [ebp - 0x148]
call fcn.0042e500
mov dword [ebp - 0x390], eax
mov edx, dword [ebp - 0x390]
mov dword [ebp - 0x394], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x394]
call fcn.0042c070
push eax
lea ecx, [ebp - 0x110]
call fcn.0042c3f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x370]
call fcn.0042bef0
push 0x4843c4
lea eax, [ebp - 0x380]
push eax
lea ecx, [ebp - 0x148]
call fcn.0042e500
mov dword [ebp - 0x398], eax
mov ecx, dword [ebp - 0x398]
mov dword [ebp - 0x39c], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x39c]
call fcn.0042c070
push eax
lea ecx, [ebp - 0x20]
call fcn.0042c3f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x380]
call fcn.0042bef0
lea ecx, [ebp - 0x148]
call fcn.0042e3b0
lea ecx, [ebp - 0x110]
call fcn.0042c070
push eax
call fcn.0044dd6d
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 8]
jge 0x414c4b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call fcn.0042f6b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0042bef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x110]
call fcn.0042bef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.0042bef0
jmp 0x4151df
mov dword [ebp - 0x14c], 0
call fcn.0041af60
test eax, eax
jne 0x414cc5
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [0x49a3e0]
push edx
call fcn.0041dd70
add esp, 0xc
test eax, eax
jne 0x414cc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call fcn.0042f6b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0042bef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x110]
call fcn.0042bef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.0042bef0
jmp 0x4151df
jmp 0x414d54
mov word [ebp - 0x35c], 0
push 0x1fe
push 0
lea eax, [ebp - 0x35a]
push eax
call fcn.00449d00
add esp, 0xc
push 0x100
lea ecx, [ebp - 0x35c]
push ecx
push 0x4843a4
call fcn.00433260
add esp, 0xc
test eax, eax
jne 0x414d42
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call fcn.0042f6b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0042bef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x110]
call fcn.0042bef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.0042bef0
jmp 0x4151df
lea edx, [ebp - 0x35c]
push edx
lea ecx, [ebp - 0x120]
call fcn.0042c3f0
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x156]
push ecx
movzx edx, word [ebp - 0x15a]
push edx
movzx eax, word [ebp - 0x15c]
push eax
push 0x4843e8
push str._sW__4.4d_2.2d_2.2d.log
lea ecx, [ebp - 0xec]
push ecx
call fcn.004159f0
add esp, 0x18
lea edx, [ebp - 0xec]
push edx
lea ecx, [ebp - 0x120]
call fcn.0042ce00
mov dword [ebp - 0xfc], 0xffffffff
call fcn.0041aff0
test eax, eax
je 0x414de3
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x120]
call fcn.0042c070
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xfc], eax
jmp 0x414e0f
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x120]
call fcn.0042c070
push eax
call fcn.00433610
add esp, 0x1c
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0xfc], 0xffffffff
jne 0x414e59
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call fcn.0042f6b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0042bef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x110]
call fcn.0042bef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.0042bef0
jmp 0x4151df
push 0
mov eax, dword [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0
jne 0x414ea4
mov byte [ebp - 0x360], 0xff
mov byte [ebp - 0x35f], 0xfe
push 0
lea ecx, [ebp - 0x124]
push ecx
push 2
lea edx, [ebp - 0x360]
push edx
mov eax, dword [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
mov ecx, dword [ebp - 0xfc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0xfc], 0xffffffff
jne 0x414f01
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call fcn.0042f6b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0042bef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x110]
call fcn.0042bef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.0042bef0
jmp 0x4151df
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
movzx edx, word [ebp - 0x150]
push edx
movzx eax, word [ebp - 0x152]
push eax
movzx ecx, word [ebp - 0x154]
push ecx
movzx edx, word [ebp - 0x156]
push edx
movzx eax, word [ebp - 0x15a]
push eax
movzx ecx, word [ebp - 0x15c]
push ecx
push 0x484328
lea edx, [ebp - 0xec]
push edx
call fcn.004159f0
add esp, 0x24
lea eax, [ebp + 0x10]
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0044dce3
add esp, 8
add eax, 1
mov dword [ebp - 0x100], eax
xor ecx, ecx
mov eax, dword [ebp - 0x100]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00448fa1
add esp, 4
mov dword [ebp - 0x384], eax
mov eax, dword [ebp - 0x384]
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0
jne 0x414fec
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call fcn.0042f6b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0042bef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x110]
call fcn.0042bef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.0042bef0
jmp 0x4151df
mov ecx, dword [ebp - 0x100]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0xf8]
push edx
call fcn.00449d00
add esp, 0xc
mov eax, dword [ebp - 0xf0]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x100]
push edx
mov eax, dword [ebp - 0xf8]
push eax
call fcn.0044da4c
add esp, 0x10
mov dword [ebp - 0xf0], 0
push 0x48350c
lea ecx, [ebp - 0x20]
call fcn.0042c7a0
test eax, eax
je 0x4150d4
lea ecx, [ebp - 0x20]
call fcn.0042c070
push eax
mov ecx, dword [ebp - 0xf8]
push ecx
call fcn.00415820
add esp, 8
test eax, eax
jne 0x4150d4
cmp dword [ebp - 0xf8], 0
je 0x415086
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0x388], edx
mov eax, dword [ebp - 0x388]
push eax
call fcn.0044a9ac
add esp, 4
mov ecx, dword [ebp - 0xfc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call fcn.0042f6b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0042bef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x110]
call fcn.0042bef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.0042bef0
jmp 0x4151df
push 0
lea edx, [ebp - 0x124]
push edx
push 2
push 0x484320
mov eax, dword [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0xec]
push edx
call fcn.0044d86a
add esp, 4
shl eax, 1
push eax
lea eax, [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0xfc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x124]
push edx
push 2
push 0x48431c
mov eax, dword [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x100]
sub ecx, 1
test ecx, ecx
jle 0x415172
push 0
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x100]
lea ecx, [eax + eax - 2]
push ecx
mov edx, dword [ebp - 0xf8]
push edx
mov eax, dword [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0xf8], 0
je 0x415196
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0x38c], ecx
mov edx, dword [ebp - 0x38c]
push edx
call fcn.0044a9ac
add esp, 4
mov eax, dword [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call fcn.0042f6b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0042bef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x110]
call fcn.0042bef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.0042bef0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00449ce2
mov esp, ebp
pop ebp
ret