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

Disassembly:
sub esp, 0x450
mov eax, dword [0x48a3c0]
xor eax, esp
mov dword [esp + 0x448], eax
cmp dword [edi + 4], 0
push esi
jne 0x44e0b2
cmp dword [edi], 0xffffffff
jne 0x44e0b2
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
lea eax, [esp + 0x3c]
push eax
push 0
mov dword [edi + 4], 1
call esi
mov edx, dword [0x48e540]
push 0x104
lea ecx, [esp + 0x244]
push ecx
push edx
call esi
lea eax, [esp + 0x38]
push 0x2e
push eax
call fcn.004611a3
add esp, 8
test eax, eax
je 0x44dea2
xor ecx, ecx
mov word [eax + 2], cx
lea edx, [esp + 0x240]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, 0x104
lea ecx, [esp + 0x38]
lea esp, [esp]
cmp word [ecx], 0
je 0x44ded0
add ecx, 2
sub esi, 1
jne 0x44dec0
jmp 0x44def1
test esi, esi
je 0x44def1
mov edx, 0x104
sub edx, esi
mov ecx, 0x104
push eax
sub ecx, edx
lea edx, [esp + edx*2 + 0x3c]
mov eax, 0x7fffffff
call fcn.00452ab0
lea eax, [esp + 0x38]
push 0x2e
push eax
call fcn.004611a3
add esp, 8
test eax, eax
je 0x44df0a
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, 0x104
lea eax, [esp + 0x38]
cmp word [eax], 0
je 0x44df23
add eax, 2
sub ecx, 1
jne 0x44df13
jmp 0x44df48
test ecx, ecx
je 0x44df48
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax*2 + 0x38]
push str.som.log
mov eax, 0x7fffffff
call fcn.00452ab0
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 7
push 0x40000000
lea edx, [esp + 0x50]
push edx
call esi
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x44df8c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x44dfcd
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x44df8c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea eax, [esp + 0x50]
push eax
call esi
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x44e0b2
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x34], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x44e07a
lea edx, [esp + 0x18]
push edx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [esp + 0x16]
movzx ecx, word [esp + 0x14]
movzx edx, word [esp + 0x12]
push eax
movzx eax, word [esp + 0x14]
push ecx
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x16]
push eax
movzx eax, word [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [esp + 0x58]
push ecx
push str.Process__s__d___
mov ecx, edi
call fcn.0044e2f0
add esp, 0x28
pop esi
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.00460259
add esp, 0x450
ret
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0xe]
movzx ecx, word [esp + 0xa]
movzx edx, word [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x48]
push eax
push str.Process__s__d____d__02d__02d_
mov ecx, edi
call fcn.0044e2f0
add esp, 0x18
mov ecx, dword [esp + 0x44c]
pop esi
xor ecx, esp
call fcn.00460259
add esp, 0x450
ret