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

Disassembly:
push 0xffffffffffffffff
push 0x481962
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x344], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x35c]
mov dword fs:[0], eax
xor edi, edi
push 0xc6
lea eax, [esp + 0x96]
push edi
push eax
mov word [esp + 0x9c], di
call fcn.0044c830
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.00419330
lea ecx, [esp + 0x3c]
mov dword [esp + 0x364], edi
call fcn.00419330
lea ecx, [esp + 0x2c]
mov byte [esp + 0x364], 1
call fcn.00419330
lea ecx, [esp + 0x60]
mov byte [esp + 0x364], 2
call fcn.00435de0
mov bl, 3
mov byte [esp + 0x364], bl
call fcn.00421560
test eax, eax
push edi
push edi
push 1
lea ecx, [esp + 0x6c]
push 1
je 0x415979
push 0x48c0c8
jmp 0x41597e
push 0x48c08c
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00435f10
cmp eax, edi
je 0x415cbf
push 0x48c078
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x68]
call fcn.00436060
mov ecx, eax
mov byte [esp + 0x364], 4
call fcn.00419660
push eax
lea ecx, [esp + 0x40]
call fcn.004199f0
lea ecx, [esp + 0x80]
mov byte [esp + 0x364], bl
call fcn.004194e0
push 0x48c054
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x68]
call fcn.00436060
mov ecx, eax
mov byte [esp + 0x364], 5
call fcn.00419660
push eax
lea ecx, [esp + 0x30]
call fcn.004199f0
lea ecx, [esp + 0x80]
mov byte [esp + 0x364], bl
call fcn.004194e0
lea ecx, [esp + 0x60]
call fcn.00435e30
lea ecx, [esp + 0x3c]
call fcn.00419660
push eax
call fcn.0044f4ba
add esp, 4
cmp eax, dword [esp + 0x36c]
jl 0x415cbf
mov dword [esp + 0x5c], edi
call fcn.00420cb0
test eax, eax
jne 0x415a6b
mov edx, dword [0x4a47a0]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.00420730
add esp, 0xc
test eax, eax
jne 0x415ab9
jmp 0x415cbf
push 0x1fe
lea eax, [esp + 0x15e]
push edi
push eax
mov word [esp + 0x164], di
call fcn.0044c830
push 0x100
lea ecx, [esp + 0x168]
push ecx
push 0x48c034
call fcn.00430ee0
add esp, 0x18
test eax, eax
je 0x415cbf
lea edx, [esp + 0x158]
push edx
lea ecx, [esp + 0x20]
call fcn.004199f0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x52]
movzx edx, word [esp + 0x4e]
movzx eax, word [esp + 0x4c]
push ecx
push edx
push eax
push 0x48c078
lea ecx, [esp + 0xa0]
push str._sW__4.4d_2.2d_2.2d.log
push ecx
call fcn.00415880
add esp, 0x18
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x20]
call fcn.0041a400
call fcn.0041ddd0
test eax, eax
push edi
push 0x80
push 4
push edi
push 1
lea ecx, [esp + 0x30]
push 0x40000000
je 0x415b2c
call fcn.00419660
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x415b3a
call fcn.00419660
push eax
call fcn.00431290
add esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x415cbf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
jne 0x415b71
push edi
lea eax, [esp + 0x1c]
push eax
push 2
lea ecx, [esp + 0x20]
push ecx
push esi
mov byte [esp + 0x28], 0xff
mov byte [esp + 0x29], 0xfe
call ebx
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx edx, word [esp + 0x58]
movzx ecx, word [esp + 0x54]
push eax
movzx eax, word [esp + 0x5a]
push edx
movzx edx, word [esp + 0x5a]
push eax
movzx eax, word [esp + 0x5a]
push ecx
movzx ecx, word [esp + 0x5c]
push edx
push eax
push ecx
lea edx, [esp + 0xac]
push 0x48bfb8
push edx
call fcn.00415880
mov ecx, dword [esp + 0x394]
lea eax, [esp + 0x398]
push eax
push ecx
call fcn.0044f430
mov edi, eax
add edi, 1
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044aa3d
mov ebp, eax
add esp, 0x30
test ebp, ebp
je 0x415cbf
lea eax, [edi + edi]
push eax
push 0
push ebp
call fcn.0044c830
mov edx, dword [esp + 0x37c]
lea ecx, [esp + 0x380]
push ecx
push edx
push edi
push ebp
call fcn.0044b7e7
add esp, 0x1c
push 0x489164
lea ecx, [esp + 0x30]
call fcn.00419da0
test eax, eax
je 0x415c47
lea ecx, [esp + 0x2c]
call fcn.00419660
push eax
push ebp
call fcn.0044f2ca
add esp, 8
test eax, eax
je 0x415caf
push 0
lea eax, [esp + 0x1c]
push eax
push 2
push 0x48bfb4
push esi
call ebx
lea eax, [esp + 0x90]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415c62
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x1c]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
call ebx
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
push 0x48bfb0
push esi
call ebx
lea edx, [edi - 1]
test edx, edx
jle 0x415caf
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + edi - 2]
push ecx
push ebp
push esi
call ebx
push ebp
call fcn.0044ca76
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x60]
mov byte [esp + 0x364], 2
call fcn.004372f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x364], 1
call fcn.004194e0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x364], 0
call fcn.004194e0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x364], 0xffffffff
call fcn.004194e0
mov ecx, dword [esp + 0x35c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x344]
xor ecx, esp
call fcn.0044b607
add esp, 0x354
ret