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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef2a0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x54b1b4]
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 0x42d432
lea ebx, [esi + 0x6e]
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [0x54af28]
mov edx, dword [eax + 0xc]
mov ecx, 0x54af28
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x68], edi
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
dec eax
je 0x42d307
dec eax
jne 0x42d328
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.00407bd0
add esp, 0x20
jmp 0x42d325
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.00407bd0
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.0042e640
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 1
cmp dword [edi - 4], 1
jle 0x42d357
mov eax, dword [edi - 0xc]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.004078f0
mov edi, dword [ebp - 0x68]
push ebx
mov eax, edi
lea ecx, [ebp - 0x64]
call fcn.00406d60
push eax
mov eax, 0x514cc8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00406d60
add esp, 8
cmp dword [ebp - 0x50], 8
jb 0x42d389
mov edx, dword [ebp - 0x64]
push edx
call fcn.004ba3a4
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 0x42d3b1
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ba3a4
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 0x42d3cd
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 0x42d439
cmp dword [ebp - 0x18], 8
mov byte [esi + 0x6c], bl
jb 0x42d3ff
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ba3a4
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 0x42d432
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x42d4d1
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x50]
call fcn.00407f10
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 0x42d46d
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x42d486
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 0x42d49c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004ba3a4
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 0x42d4cf
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.004ba3af
mov esp, ebp
pop ebp
ret