Function at 0x4a86c0
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 [0x857a04]
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.00474070
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.005d5030
mov dword [esp + 8], ebx
mov dword [esp], eax
mov ebp, eax
mov dword [esp + 4], edx
call fcn.004ada10
cmp byte [esp + 0x40], 0
je 0x4a89e7
xor edx, edx
jmp 0x4a8764
mov edx, eax
lea eax, [edx + 1]
cmp byte [ebx + eax], 0
jne 0x4a8762
cmp eax, 5
ja 0x4a89fb
cmp edx, 4
mov byte [esp + 0x3f], 0x20
je 0x4a8a3a
add edx, 3
mov byte [esp + 0x3e], 0x20
cmp edx, 6
je 0x4a8a28
cmp edx, 5
mov byte [esp + 0x3d], 0x20
je 0x4a8a31
cmp edx, 4
mov byte [esp + 0x3c], 0x20
je 0x4a8a5e
cmp edx, 3
mov byte [esp + 0x3b], 0x20
je 0x4a8a1f
lea eax, [esp + 0x3a]
mov byte [esp + 0x3a], 0x20
mov edx, dword [0x857a04]
mov edx, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_fputs
mov eax, dword [0x857a04]
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.004ada10
cmp byte [esp + 0x40], 0
je 0x4a89ba
xor edx, edx
jmp 0x4a8832
mov edx, eax
lea eax, [edx + 1]
cmp byte [ebx + eax], 0
jne 0x4a8830
cmp eax, 2
ja 0x4a89e0
cmp edx, 1
mov byte [esp + 0x3f], 0x30
lea eax, [esp + 0x3f]
je 0x4a885b
lea eax, [esp + 0x3e]
mov byte [esp + 0x3e], 0x30
mov edx, dword [0x857a04]
mov edx, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_fputs
cmp edi, 0x1000000
jb 0x4a88a8
jbe 0x4a89d2
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
shrd esi, edi, 1
shr edi, 1
shrd eax, edx, 1
shr edx, 1
cmp edi, 0x1000000
ja 0x4a8885
jb 0x4a88a0
cmp esi, 0
ja 0x4a8885
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, edx
or ecx, eax
je 0x4a88e6
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.005d5030
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [0x857a04]
mov eax, dword [eax]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x7336b7
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.004ada10
cmp byte [esp + 0x40], 0
je 0x4a8a02
xor edx, edx
jmp 0x4a8936
mov edx, eax
lea eax, [edx + 1]
cmp byte [ebx + eax], 0
jne 0x4a8934
cmp eax, 4
ja 0x4a8988
cmp edx, 3
mov byte [esp + 0x3f], 0x20
je 0x4a8a16
add edx, 3
mov byte [esp + 0x3e], 0x20
cmp edx, 5
je 0x4a8a43
cmp edx, 4
mov byte [esp + 0x3d], 0x20
je 0x4a8a4c
cmp edx, 3
mov byte [esp + 0x3c], 0x20
je 0x4a8a55
lea ebx, [esp + 0x3b]
mov byte [esp + 0x3b], 0x20
mov eax, dword [0x857a04]
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov eax, dword [0x857a04]
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 byte [esp + 0x3f], 0x30
mov byte [esp + 0x3e], 0x30
lea eax, [esp + 0x3d]
mov byte [esp + 0x3d], 0x30
jmp 0x4a885b
cmp esi, 0
jbe 0x4a88a8
jmp 0x4a887d
mov eax, ebx
jmp 0x4a885b
mov byte [esp + 0x3f], 0x20
mov byte [esp + 0x3e], 0x20
mov edx, 2
jmp 0x4a8795
mov eax, ebx
jmp 0x4a87c8
mov byte [esp + 0x3f], 0x20
mov byte [esp + 0x3e], 0x20
mov edx, 2
jmp 0x4a8963
lea ebx, [esp + 0x3f]
jmp 0x4a8988
lea eax, [esp + 0x3b]
jmp 0x4a87c8
lea eax, [esp + 0x3e]
jmp 0x4a87c8
lea eax, [esp + 0x3d]
jmp 0x4a87c8
lea eax, [esp + 0x3f]
jmp 0x4a87c8
lea ebx, [esp + 0x3e]
jmp 0x4a8988
lea ebx, [esp + 0x3d]
jmp 0x4a8988
lea ebx, [esp + 0x3c]
jmp 0x4a8988
lea eax, [esp + 0x3c]
jmp 0x4a87c8