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

Disassembly:
push 0xffffffffffffffff
push 0x5527f0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, dword [esp + 0x60]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 7
push 0xc0000000
push edi
mov dword [esp + 0x34], 0xffffffff
call fcn.004be780
add esp, 0x20
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.0049eff0
mov ebp, vtable.cWCStr.0
mov dword [esp + 0x30], ebp
mov dword [esp + 0x58], ebx
cmp esi, 0xffffffff
jne 0x42b8b8
cmp byte [esp + 0x64], bl
jne 0x42b7ed
push ebx
push str.Error_in_opening_log_file
push edi
push ebx
call fcn.004b3720
add esp, 0x10
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x30], vtable.cWCS.0
call fcn.0049ee80
or eax, 0xffffffff
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
cmp byte [esp + 0x6c], bl
je 0x42b7bd
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x48]
call fcn.0049eff0
mov dword [esp + 0x40], ebp
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
lea ecx, [esp + 0x58]
push edi
push ecx
mov byte [esp + 0x78], 1
call fcn.0042b6c0
add esp, 8
push eax
call fcn.004b5ff0
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
je 0x42b8a3
cmp byte [0x5b6960], bl
jne 0x42b891
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x28]
call fcn.00401040
mov edx, dword [esp + 0x14]
push edi
push edx
mov ecx, eax
mov byte [esp + 0x60], 2
call fcn.0041cab0
push eax
push str.WriteToLogFile
lea eax, [esp + 0x3c]
push str.Action:__s_tError:__s_in_opening_file_tPath:__s
push eax
call fcn.00401080
add esp, 0x14
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 1
mov dword [esp + 0x20], vtable.cWCS.0
call fcn.0049ee80
mov byte [0x5b6960], 1
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x42b8a3
push eax
lea ecx, [esp + 0x44]
call fcn.0049e930
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], bl
mov dword [esp + 0x40], vtable.cWCS.0
call fcn.0049ee80
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x18], eax
or eax, dword [esp + 0x1c]
mov dword [esp + 0x60], ebx
jne 0x42b8e8
push ebx
lea edx, [esp + 0x64]
push edx
push 3
push 0x579d6c
push esi
call ebp
lea ecx, [esp + 0x30]
call fcn.0049e900
test al, al
jne 0x42b963
push ebx
lea ecx, [esp + 0x24]
call fcn.0049ab60
mov eax, dword [esp + 0x34]
push 0xfde9
push ebx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 3
call fcn.0049b360
push 0xffffffffffffffff
push 0x570b68
lea ecx, [esp + 0x28]
call fcn.0049af70
push 2
push ebx
push ebx
push esi
mov dword [esp + 0x70], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x20]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42b942
push ebx
lea ecx, [esp + 0x64]
push ecx
sub eax, edi
push eax
push edx
push esi
call ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], bl
call fcn.0049ac30
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x30], vtable.cWCS.0
call fcn.0049ee80
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret