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

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea esi, [esp + 0x38]
call fcn.0040c270
movzx ecx, word [esp + 0x56]
movzx edx, word [esp + 0x54]
movzx eax, word [esp + 0x52]
push ecx
movzx ecx, word [esp + 0x54]
push edx
movzx edx, word [esp + 0x56]
push eax
movzx eax, word [esp + 0x56]
push ecx
movzx ecx, word [esp + 0x58]
push edx
push eax
push ecx
push str.__d__d__d__d:_d:_d._d_
mov eax, esi
call fcn.0040c410
add esp, 0x20
push 0x4315e4
or eax, 0xffffffff
mov ecx, esi
call fcn.0040c970
mov edx, dword [esp + 0x5c]
push edx
or eax, 0xffffffff
mov ecx, esi
call fcn.0040c970
push 0x4315e4
or eax, 0xffffffff
mov ecx, esi
call fcn.0040c970
lea esi, [esp + 0x28]
call fcn.0040c270
push 1
mov ecx, 0x104
call fcn.0040c550
mov esi, dword [esp + 0x28]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test esi, esi
je 0x41bfd4
mov eax, esi
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41bfc0
sub eax, esi
sar eax, 1
dec eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
call fcn.004083a0
lea eax, [esp + 0x28]
call fcn.00408210
cmp dword [esp + 0x2c], 0
je 0x41bff7
mov ebx, 0x43157c
call fcn.0040c8b0
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax*2 + str.request.log]
cmp cx, 0x5c
je 0x41c014
cmp cx, 0x2f
jne 0x41c017
inc eax
jmp 0x41c000
lea ebx, [eax*2 + str.request.log]
lea eax, [esp + 0x28]
call fcn.0040c8b0
mov edx, dword [esp + 0x28]
xor edi, edi
push edi
push 0x80
push 4
push edi
push 2
push 0x120116
push edx
or ebp, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or esi, ebp
cmp eax, esi
je 0x41c04f
mov ebp, eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x41c069
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
jmp 0x41c079
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
cmp eax, edi
je 0x41c0ee
mov ecx, dword [esp + 0x3c]
push edi
push edi
push edi
push edi
push ecx
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
jne 0x41c0b3
xor edi, edi
jmp 0x41c0ee
lea eax, [esi + 1]
test eax, eax
jbe 0x41c0cf
lea edi, [esp + 0x18]
call fcn.00408fe0
mov ebx, dword [esp + 0x18]
test al, al
jne 0x41c0cf
xor edi, edi
jmp 0x41c0ee
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push 0
push 0
push esi
push ebx
push edx
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
push 0
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push ebp
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, 0xffffffff
je 0x41c133
push ebp
call edi
or ebp, 0xffffffff
test ebx, ebx
je 0x41c14d
cmp byte [esp + 0x21], 0
jne 0x41c14d
mov ecx, dword [esp + 0x20]
push ecx
mov esi, ebx
call fcn.00408b50
add esp, 4
cmp ebp, 0xffffffff
je 0x41c155
push ebp
call edi
mov esi, dword [esp + 0x28]
test esi, esi
je 0x41c16a
mov edx, dword [esp + 0x34]
push edx
call fcn.00408b50
add esp, 4
mov esi, dword [esp + 0x38]
test esi, esi
je 0x41c17f
mov eax, dword [esp + 0x44]
push eax
call fcn.00408b50
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret