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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ce00
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4b8914]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x20]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov cx, word [ebp - 0x1a]
cmp cx, word [esi + 0x26]
je 0x431f8c
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x431f35
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
sub esp, 0x18
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x5c], esp
mov eax, esp
je 0x431f54
mov dword [eax], vtable.std::tr1::_Impl_base2_bool__char_const___struct__WIN32_FIND_DATAA_const__.0
mov dword [eax], vtable.._AV___Impl_no_alloc2_U___Callable_obj_V_lambda0___A0xb05a00b3_errorlog_wxfw___0A__tr1_std___NPBDABU_WIN32_FIND_DATAA___tr1_std__.0
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax + 0x10], eax
cmp dword [esi + 0x44], 0x10
lea eax, [esi + 0x30]
jb 0x431f62
mov eax, dword [eax]
push 0
push eax
call fcn.00408d40
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x20], edx
mov edx, dword [ebp - 0x14]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
add esp, 0x20
mov dword [esi + 0x2c], edx
mov dword [esi + 0x1c], 0
cmp dword [esi], 0xffffffff
jne 0x431f9c
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00431240
mov ebx, dword [esi]
cmp ebx, 0xffffffff
je 0x4320e2
cmp dword [esi + 0x98], 0
mov dword [ebp - 0x5c], 0
je 0x432078
mov ecx, dword [esi + 0x68]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x431fc3
sub eax, edi
mov byte [ecx + eax - 2], dl
mov ecx, dword [esi + 0x68]
xor ebx, ebx
mov eax, ecx
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x431fe7
sub eax, edi
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004010b2
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [esi + 0x88]
mov dword [ebp - 4], ebx
call fcn.00408f70
mov edi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x28], edi
jb 0x43202a
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00471f65
add esp, 4
push 2
push 0x494ad0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], 0
call fcn.00402719
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x44], edi
jae 0x432052
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x48]
push ebx
lea ecx, [ebp - 0x5c]
push ecx
push edx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x44], edi
jb 0x43209a
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00471f65
add esp, 4
jmp 0x43209a
mov edx, dword [esi + 0x68]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x432080
push 0
lea ecx, [ebp - 0x5c]
push ecx
sub eax, edi
push eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x4320e2
lea edx, [ebp - 0x60]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x64], eax
cmp eax, 0xffffffff
jne 0x4320c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4320e2
mov eax, dword [ebp - 0x64]
xor ecx, ecx
shl edi, 0x14
cmp dword [ebp - 0x60], ecx
jb 0x4320e2
ja 0x4320d4
cmp eax, edi
jb 0x4320e2
inc dword [esi + 0x1c]
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00431240
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00471528
mov esp, ebp
pop ebp
ret