Function at 0x402f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x412150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], eax
cmp edi, 0xfa0
jb 0x4031f5
mov edx, dword [esi + 8]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x8c]
push ecx
push ebx
push 1
push ebx
push 2
push edx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_LockFileEx]
mov ecx, esi
call fcn.00402d30
cmp dword [ebp - 0x64], ebx
jne 0x402fd5
mov dword [ebp - 0x64], str.NULL
lea eax, [ebp - 0x78]
push eax
call fcn.00404f8c
lea ecx, [ebp - 0x78]
push ecx
call fcn.00404f65
push eax
push str.__Y_m_d_H_M_S
lea edx, [ebp - 0x60]
push 0x50
push edx
call fcn.00405ac3
add esp, 0x18
lea eax, [ebp - 0x10]
push 0xa
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
call fcn.0040c733
push edi
call fcn.00401070
lea ecx, [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 0x70], eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403020
sub ecx, esi
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403030
sub eax, esi
mov edi, eax
lea eax, [ebp - 0x60]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403041
sub eax, esi
mov edx, eax
mov eax, dword [ebp - 0x64]
lea esi, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x403052
sub eax, esi
add eax, edx
add eax, edi
lea eax, [eax + ecx + 0xe]
push eax
mov dword [ebp - 0x68], eax
call fcn.00404c9b
mov ecx, dword [str._pid]
mov ebx, eax
mov dword [ebx], ecx
mov dx, word [0x40d830]
lea eax, [ebp - 0x10]
add esp, 4
mov word [ebx + 4], dx
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403090
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4030a0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebx - 1]
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4030c0
mov cx, word [0x40d828]
mov word [eax], cx
mov dl, byte [0x40d82a]
mov byte [eax + 2], dl
mov eax, dword [ebp - 0x70]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4030e0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4030f0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x60]
rep movsb byte es:[edi], byte [esi]
mov esi, eax
jmp 0x403110
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403110
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403120
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebx - 1]
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403140
mov ecx, dword [0x40d820]
mov dword [eax], ecx
mov dl, byte [0x40d824]
mov byte [eax + 4], dl
mov eax, dword [ebp - 0x64]
mov esi, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403160
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403170
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebx - 1]
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403190
mov cx, word [0x40d81c]
mov esi, dword [ebp - 0x6c]
mov word [eax], cx
mov dl, byte [0x40d81e]
push 2
push 0
mov byte [eax + 2], dl
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x68]
mov eax, dword [esi + 4]
push 0
lea ecx, [ebp - 0x68]
push ecx
dec edx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.00404776
mov edx, dword [esi + 8]
add esp, 4
lea ecx, [ebp - 0x8c]
push ecx
push 0
push 1
push 0
push edx
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403e26
mov esp, ebp
pop ebp
ret 8