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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb120
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [esi + 0x6c], 0
jne 0x42b922
lea ebx, [esi + 0x6e]
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [0x543f28]
mov edx, dword [eax + 0xc]
mov ecx, 0x543f28
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x68], edi
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
dec eax
je 0x42b7f7
dec eax
jne 0x42b818
movzx eax, word [esi + 0x7c]
movzx ecx, word [esi + 0x7a]
movzx edx, word [esi + 0x78]
push eax
movzx eax, word [esi + 0x76]
push ecx
movzx ecx, word [esi + 0x74]
push edx
movzx edx, word [esi + 0x70]
push eax
movzx eax, word [ebx]
push ecx
push edx
push eax
push str._02d__02d__02d__02d_02d_02d_03d
lea edi, [ebp - 0x68]
call fcn.00406b50
add esp, 0x20
jmp 0x42b815
movzx ecx, word [esi + 0x74]
movzx edx, word [esi + 0x70]
movzx eax, word [ebx]
push ecx
push edx
push eax
push str._02d__02d__02d
lea edi, [ebp - 0x68]
call fcn.00406b50
add esp, 0x10
mov edi, dword [ebp - 0x68]
lea ecx, [esi + 0x18]
push ecx
lea edx, [ebp - 0x48]
lea ebx, [esi + 0x34]
push edx
call fcn.0042cb30
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 1
cmp dword [edi - 4], 1
jle 0x42b847
mov eax, dword [edi - 0xc]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.00406870
mov edi, dword [ebp - 0x68]
push ebx
mov eax, edi
lea ecx, [ebp - 0x64]
call fcn.004044b0
push eax
mov eax, 0x50f610
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004044b0
add esp, 8
cmp dword [ebp - 0x50], 8
jb 0x42b879
mov edx, dword [ebp - 0x64]
push edx
call fcn.004b6106
add esp, 4
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x34], 8
jb 0x42b8a1
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x2c]
xor edx, edx
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
jae 0x42b8bd
lea eax, [ebp - 0x2c]
push ebx
push ebx
push 4
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x80], eax
cmp eax, ebx
jne 0x42b929
cmp dword [ebp - 0x18], 8
mov byte [esi + 0x6c], bl
jb 0x42b8ef
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b6106
add esp, 4
xor ecx, ecx
lea eax, [edi - 0x10]
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42b922
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x42b9c1
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x50]
call fcn.00406e90
mov edx, dword [esi + 0x80]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov eax, dword [esi + 0x80]
jbe 0x42b95d
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x42b976
push ebx
lea ecx, [ebp - 0x6c]
push ecx
push 2
lea edx, [ebp - 0x68]
push edx
push eax
mov dword [ebp - 0x68], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x18], 8
mov byte [esi + 0x6c], 1
jb 0x42b98c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b6106
add esp, 4
xor edx, edx
lea eax, [edi - 0x10]
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b9bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret