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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f03d0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x54c1b4]
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 0x42dee2
lea ebx, [esi + 0x6e]
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [0x54bf28]
mov edx, dword [eax + 0xc]
mov ecx, 0x54bf28
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x68], edi
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
dec eax
je 0x42ddb7
dec eax
jne 0x42ddd8
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.00407fa0
add esp, 0x20
jmp 0x42ddd5
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.00407fa0
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.0042f0f0
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 1
cmp dword [edi - 4], 1
jle 0x42de07
mov eax, dword [edi - 0xc]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.00407cc0
mov edi, dword [ebp - 0x68]
push ebx
mov eax, edi
lea ecx, [ebp - 0x64]
call fcn.004070c0
push eax
mov eax, 0x515ef0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004070c0
add esp, 8
cmp dword [ebp - 0x50], 8
jb 0x42de39
mov edx, dword [ebp - 0x64]
push edx
call fcn.004bb4d8
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 0x42de61
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004bb4d8
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 0x42de7d
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 0x42dee9
cmp dword [ebp - 0x18], 8
mov byte [esi + 0x6c], bl
jb 0x42deaf
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004bb4d8
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 0x42dee2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x42df81
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x50]
call fcn.004082e0
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 0x42df1d
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x42df36
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 0x42df4c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004bb4d8
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 0x42df7f
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.004bb4e3
mov esp, ebp
pop ebp
ret