Function at 0x4ae040
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov esi, edx
mov edi, ecx
sub esp, 0x6c
mov ebx, dword [0x86b9a4]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov dword [esp], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call fcn.00475870
mov eax, dword [ebx]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov eax, dword [ebx]
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], str._Time_
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
lea ebx, [esp + 0x40]
mov dword [esp + 8], 0x989680
mov dword [esp + 0xc], 0
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.005e3780
mov dword [esp + 8], ebx
mov dword [esp], eax
mov ebp, eax
mov dword [esp + 4], edx
call fcn.004b33e0
cmp byte [esp + 0x40], 0
je 0x4ae3d0
xor edx, edx
jmp 0x4ae0e4
mov edx, eax
lea eax, [edx + 1]
cmp byte [ebx + eax], 0
jne 0x4ae0e2
cmp eax, 5
ja 0x4ae3b0
cmp edx, 4
mov byte [esp + 0x3f], 0x20
je 0x4ae410
add edx, 3
mov byte [esp + 0x3e], 0x20
cmp edx, 6
je 0x4ae390
cmp edx, 5
mov byte [esp + 0x3d], 0x20
je 0x4ae440
cmp edx, 4
mov byte [esp + 0x3c], 0x20
je 0x4ae3a0
cmp edx, 3
mov byte [esp + 0x3b], 0x20
je 0x4ae460
lea edx, [esp + 0x3a]
mov byte [esp + 0x3a], 0x20
mov eax, dword [0x86b9a4]
mov eax, dword [eax]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov eax, dword [0x86b9a4]
mov eax, dword [eax]
mov dword [esp], 0x2e
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
imul ebp, ebp, 0x989680
mov edx, esi
mov ecx, 0xd1b71759
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
sub edx, ebp
mov eax, edx
mul ecx
shr edx, 0xd
mov dword [esp], edx
call fcn.004b33e0
cmp byte [esp + 0x40], 0
je 0x4ae370
xor edx, edx
jmp 0x4ae1b2
mov edx, eax
lea eax, [edx + 1]
cmp byte [ebx + eax], 0
jne 0x4ae1b0
cmp eax, 2
ja 0x4ae3c0
cmp edx, 1
mov byte [esp + 0x3f], 0x30
lea eax, [esp + 0x3f]
je 0x4ae1db
lea eax, [esp + 0x3e]
mov byte [esp + 0x3e], 0x30
mov edx, dword [0x86b9a4]
mov edx, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_fputs
cmp edi, 0x1000000
jb 0x4ae210
ja 0x4ae330
cmp esi, 0
ja 0x4ae330
lea esi, [esi]
lea edi, [edi]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, edx
or ecx, eax
je 0x4ae24e
mov eax, 0x64
mov ebp, dword [esp + 0x1c]
imul ecx, edi, 0x64
mov edi, dword [esp + 0x18]
mul esi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edi
add edx, ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005e3780
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [0x86b9a4]
mov eax, dword [eax]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x7470f7
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004b33e0
cmp byte [esp + 0x40], 0
je 0x4ae3e4
xor edx, edx
jmp 0x4ae2a2
mov edx, eax
lea eax, [edx + 1]
cmp byte [ebx + eax], 0
jne 0x4ae2a0
cmp eax, 4
ja 0x4ae2f4
cmp edx, 3
mov byte [esp + 0x3f], 0x20
je 0x4ae400
add edx, 3
mov byte [esp + 0x3e], 0x20
cmp edx, 5
je 0x4ae420
cmp edx, 4
mov byte [esp + 0x3d], 0x20
je 0x4ae430
cmp edx, 3
mov byte [esp + 0x3c], 0x20
je 0x4ae450
lea ebx, [esp + 0x3b]
mov byte [esp + 0x3b], 0x20
mov eax, dword [0x86b9a4]
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov eax, dword [0x86b9a4]
mov eax, dword [eax]
mov dword [esp], 0x25
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
nop
lea esi, [esi]
shrd esi, edi, 1
shr edi, 1
shrd eax, edx, 1
shr edx, 1
cmp edi, 0x1000000
ja 0x4ae340
jb 0x4ae35b
cmp esi, 0
ja 0x4ae340
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jmp 0x4ae210
mov edx, 0x3030
mov byte [esp + 0x3f], 0x30
lea eax, [esp + 0x3d]
mov word [esp + 0x3d], dx
jmp 0x4ae1db
lea edx, [esp + 0x3e]
jmp 0x4ae148
lea edx, [esp + 0x3c]
jmp 0x4ae148
mov edx, ebx
jmp 0x4ae148
mov eax, ebx
jmp 0x4ae1db
mov ecx, 0x2020
mov edx, 2
mov word [esp + 0x3e], cx
jmp 0x4ae115
mov eax, 0x2020
mov edx, 2
mov word [esp + 0x3e], ax
jmp 0x4ae2cf
lea ebx, [esp + 0x3f]
jmp 0x4ae2f4
lea edx, [esp + 0x3f]
jmp 0x4ae148
lea ebx, [esp + 0x3e]
jmp 0x4ae2f4
lea ebx, [esp + 0x3d]
jmp 0x4ae2f4
lea edx, [esp + 0x3d]
jmp 0x4ae148
lea ebx, [esp + 0x3c]
jmp 0x4ae2f4
lea edx, [esp + 0x3b]
jmp 0x4ae148