Function at 0x42e020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f58c
mov eax, dword fs:[0]
push eax
mov eax, 0x10e4
call fcn.00452710
mov eax, dword [0x48d814]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x20c], 0xffffffff
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1098], ecx
je 0x42e388
lea eax, [ebp - 0x10ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x109e]
movzx edx, word [ebp - 0x10a0]
movzx eax, word [ebp - 0x10a2]
push ecx
movzx ecx, word [ebp - 0x10a4]
push edx
movzx edx, word [ebp - 0x10a6]
push eax
movzx eax, word [ebp - 0x10aa]
push ecx
movzx ecx, word [ebp - 0x10ac]
push edx
push eax
push ecx
lea edx, [ebp - 0x74]
push str._02d__02d__02d__02d:_02d:_02d__03d_t
push edx
call fcn.0045357d
add esp, 0x24
xor ebx, ebx
lea eax, [ebp - 0x74]
mov dword [ebp - 0x1078], 0xf
mov dword [ebp - 0x107c], ebx
mov byte [ebp - 0x108c], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42e0e0
sub eax, edx
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x1090]
call fcn.00402920
mov dword [ebp - 4], ebx
mov edi, 7
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x10bc], edi
mov dword [ebp - 0x10c0], ebx
mov word [ebp - 0x10d0], cx
lea edx, [eax + 2]
jmp 0x42e120
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42e120
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x10d4]
call fcn.00402fe0
mov ebx, 1
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10d4]
push edx
lea eax, [ebp - 0x10f0]
push eax
call fcn.004079e0
add esp, 8
mov byte [ebp - 4], 2
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [ebp - 0x1090]
call fcn.004078d0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x10d8], 0x10
jb 0x42e18a
mov ecx, dword [ebp - 0x10ec]
push ecx
call fcn.00450138
add esp, 4
mov dword [ebp - 0x10d8], 0xf
mov dword [ebp - 0x10dc], esi
mov byte [ebp - 0x10ec], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x10bc], 8
jb 0x42e1bd
mov edx, dword [ebp - 0x10d0]
push edx
call fcn.00450138
add esp, 4
xor eax, eax
mov word [ebp - 0x10d0], ax
mov eax, dword [ebp - 0x107c]
mov dword [ebp - 0x10c0], esi
lea esi, [eax - 1]
mov dword [ebp - 0x10bc], edi
cmp esi, eax
jbe 0x42e1e4
call fcn.00450ac2
mov eax, dword [ebp - 0x108c]
mov edi, 0x10
cmp dword [ebp - 0x1078], edi
jae 0x42e1fd
lea eax, [ebp - 0x108c]
cmp byte [eax + esi], 0xa
je 0x42e214
push ebx
push 0x478f48
lea ecx, [ebp - 0x1090]
call fcn.0042ded0
mov esi, dword [ebp - 0x1098]
lea eax, [esi + 0x214]
push eax
mov dword [ebp - 0x10b4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10b8], bl
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1078], edi
jb 0x42e24d
mov ecx, dword [ebp - 0x108c]
mov dword [ebp - 0x1094], ecx
jmp 0x42e259
lea edx, [ebp - 0x108c]
mov dword [ebp - 0x1094], edx
mov eax, dword [ebp - 0x107c]
mov edi, dword [ebp - 0x1094]
mov dword [ebp - 0x109c], eax
test eax, eax
jle 0x42e310
mov esi, edi
xor edx, edx
sub esi, dword [ebp - 0x1094]
lea eax, [ebp - 0x1074]
cmp esi, dword [ebp - 0x109c]
jge 0x42e2c0
mov cl, byte [edi]
add edi, ebx
add esi, ebx
cmp cl, 0xa
jne 0x42e29d
mov byte [eax], 0xd
add eax, ebx
add edx, ebx
mov byte [eax], cl
add eax, ebx
add edx, ebx
cmp cl, 0xd
jne 0x42e2b8
cmp byte [edi], 0xa
jne 0x42e2b8
mov byte [eax], 0xa
add eax, ebx
add edx, ebx
add edi, ebx
add esi, ebx
cmp edx, 0xfff
jb 0x42e283
mov esi, eax
push 0
lea eax, [ebp - 0x1074]
lea ecx, [ebp - 0x10b0]
push ecx
sub esi, eax
mov edx, eax
mov eax, dword [ebp - 0x1098]
mov ecx, dword [eax + 0x20c]
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42e30a
cmp dword [ebp - 0x10b0], esi
jb 0x42e30a
mov edx, edi
sub edx, dword [ebp - 0x1094]
cmp edx, dword [ebp - 0x109c]
jl 0x42e273
mov esi, dword [ebp - 0x1098]
add dword [esi + 0x210], ebx
cmp dword [esi + 0x210], 0x32
jl 0x42e336
mov eax, dword [esi + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [esi + 0x210], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10b4]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x10b8], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1078], 0x10
jb 0x42e36d
mov edx, dword [ebp - 0x108c]
push edx
call fcn.00450138
add esp, 4
mov dword [ebp - 0x1078], 0xf
mov dword [ebp - 0x107c], 0
mov byte [ebp - 0x108c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045075f
mov esp, ebp
pop ebp
ret 8