Function at 0x403210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
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 + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], ecx
cmp edi, 0xfa0
jb 0x403515
mov eax, dword [esi + 8]
push ebx
xor ebx, ebx
lea edx, [ebp - 0x94]
push edx
push ebx
push 1
push ebx
push 2
push eax
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
call dword [sym.imp.KERNEL32.dll_LockFileEx]
mov ecx, esi
call fcn.00402d30
mov eax, str.NULL
cmp dword [ebp - 0x64], ebx
jne 0x40327f
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x68], ebx
jne 0x403287
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x10]
push 0xa
push ecx
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
call fcn.0040c733
push ebx
call fcn.00404f8c
mov dword [ebp - 0x7c], edx
lea edx, [ebp - 0x80]
push edx
mov dword [ebp - 0x80], eax
call fcn.00404f65
push eax
push str.__Y_m_d_H_M_S
lea eax, [ebp - 0x60]
push 0x50
push eax
call fcn.00405ac3
push edi
call fcn.00401070
lea ecx, [ebp - 0x10]
add esp, 0x28
mov dword [ebp - 0x70], eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4032d0
sub ecx, esi
mov dword [ebp - 0x74], ecx
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4032e0
sub eax, esi
mov ecx, eax
lea eax, [ebp - 0x60]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4032f1
sub eax, esi
mov edi, eax
mov eax, dword [ebp - 0x64]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403302
sub eax, esi
mov edx, eax
mov eax, dword [ebp - 0x68]
lea esi, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x403313
sub eax, esi
add eax, edx
add eax, edi
add eax, ecx
mov ecx, dword [ebp - 0x74]
lea eax, [eax + ecx + 0x11]
push eax
mov dword [ebp - 0x6c], eax
call fcn.00404c9b
mov edx, dword [str._pid]
mov ebx, eax
mov dword [ebx], edx
mov ax, word [0x40d830]
mov word [ebx + 4], ax
lea eax, [ebp - 0x10]
add esp, 4
mov esi, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403350
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403360
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 0x403380
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 0x4033a0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4033b0
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 0x4033d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4033d0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4033e0
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 0x403400
mov ecx, dword [0x40d820]
mov dword [eax], ecx
mov dl, byte [0x40d824]
mov byte [eax + 4], dl
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403420
mov ax, word [0x40d84c]
mov word [edi], ax
mov eax, dword [ebp - 0x68]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403436
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403442
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]
jmp 0x403460
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403460
mov cx, word [0x40d828]
mov word [eax], cx
mov dl, byte [0x40d82a]
mov byte [eax + 2], dl
mov eax, dword [ebp - 0x64]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403480
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403490
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 0x4034b0
mov cx, word [0x40d81c]
mov esi, dword [ebp - 0x78]
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 - 0x6c]
mov eax, dword [esi + 4]
push 0
lea ecx, [ebp - 0x6c]
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 - 0x94]
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 0xc