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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5d80
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x53f1e4]
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 0x42cc92
lea ebx, [esi + 0x6e]
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [0x53ef48]
mov edx, dword [eax + 0xc]
mov ecx, 0x53ef48
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x68], edi
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
dec eax
je 0x42cb67
dec eax
jne 0x42cb88
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.00408a70
add esp, 0x20
jmp 0x42cb85
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.00408a70
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.0042dc30
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 1
cmp dword [edi - 4], 1
jle 0x42cbb7
mov eax, dword [edi - 0xc]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.00408790
mov edi, dword [ebp - 0x68]
push ebx
mov eax, edi
lea ecx, [ebp - 0x64]
call fcn.004039a0
push eax
mov eax, 0x50a688
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004039a0
add esp, 8
cmp dword [ebp - 0x50], 8
jb 0x42cbe9
mov edx, dword [ebp - 0x64]
push edx
call fcn.004b1676
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 0x42cc11
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b1676
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 0x42cc2d
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 0x42cc99
cmp dword [ebp - 0x18], 8
mov byte [esi + 0x6c], bl
jb 0x42cc5f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1676
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 0x42cc92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x42cd31
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x50]
call fcn.00404530
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 0x42cccd
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x42cce6
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 0x42ccfc
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b1676
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 0x42cd2f
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.004b1681
mov esp, ebp
pop ebp
ret