Function at 0x4a7430
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 [0x855a04]
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.00474030
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.005d37e0
mov dword [esp + 8], ebx
mov dword [esp], eax
mov ebp, eax
mov dword [esp + 4], edx
call fcn.004ac600
cmp byte [esp + 0x40], 0
je 0x4a7757
xor edx, edx
jmp 0x4a74d4
mov edx, eax
lea eax, [edx + 1]
cmp byte [ebx + eax], 0
jne 0x4a74d2
cmp eax, 5
ja 0x4a776b
cmp edx, 4
mov byte [esp + 0x3f], 0x20
je 0x4a77aa
add edx, 3
mov byte [esp + 0x3e], 0x20
cmp edx, 6
je 0x4a7798
cmp edx, 5
mov byte [esp + 0x3d], 0x20
je 0x4a77a1
cmp edx, 4
mov byte [esp + 0x3c], 0x20
je 0x4a77ce
cmp edx, 3
mov byte [esp + 0x3b], 0x20
je 0x4a778f
lea eax, [esp + 0x3a]
mov byte [esp + 0x3a], 0x20
mov edx, dword [0x855a04]
mov edx, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_fputs
mov eax, dword [0x855a04]
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.004ac600
cmp byte [esp + 0x40], 0
je 0x4a772a
xor edx, edx
jmp 0x4a75a2
mov edx, eax
lea eax, [edx + 1]
cmp byte [ebx + eax], 0
jne 0x4a75a0
cmp eax, 2
ja 0x4a7750
cmp edx, 1
mov byte [esp + 0x3f], 0x30
lea eax, [esp + 0x3f]
je 0x4a75cb
lea eax, [esp + 0x3e]
mov byte [esp + 0x3e], 0x30
mov edx, dword [0x855a04]
mov edx, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_fputs
cmp edi, 0x1000000
jb 0x4a7618
jbe 0x4a7742
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 0x4a75f5
jb 0x4a7610
cmp esi, 0
ja 0x4a75f5
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 0x4a7656
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.005d37e0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [0x855a04]
mov eax, dword [eax]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x732357
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.004ac600
cmp byte [esp + 0x40], 0
je 0x4a7772
xor edx, edx
jmp 0x4a76a6
mov edx, eax
lea eax, [edx + 1]
cmp byte [ebx + eax], 0
jne 0x4a76a4
cmp eax, 4
ja 0x4a76f8
cmp edx, 3
mov byte [esp + 0x3f], 0x20
je 0x4a7786
add edx, 3
mov byte [esp + 0x3e], 0x20
cmp edx, 5
je 0x4a77b3
cmp edx, 4
mov byte [esp + 0x3d], 0x20
je 0x4a77bc
cmp edx, 3
mov byte [esp + 0x3c], 0x20
je 0x4a77c5
lea ebx, [esp + 0x3b]
mov byte [esp + 0x3b], 0x20
mov eax, dword [0x855a04]
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov eax, dword [0x855a04]
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 0x4a75cb
cmp esi, 0
jbe 0x4a7618
jmp 0x4a75ed
mov eax, ebx
jmp 0x4a75cb
mov byte [esp + 0x3f], 0x20
mov byte [esp + 0x3e], 0x20
mov edx, 2
jmp 0x4a7505
mov eax, ebx
jmp 0x4a7538
mov byte [esp + 0x3f], 0x20
mov byte [esp + 0x3e], 0x20
mov edx, 2
jmp 0x4a76d3
lea ebx, [esp + 0x3f]
jmp 0x4a76f8
lea eax, [esp + 0x3b]
jmp 0x4a7538
lea eax, [esp + 0x3e]
jmp 0x4a7538
lea eax, [esp + 0x3d]
jmp 0x4a7538
lea eax, [esp + 0x3f]
jmp 0x4a7538
lea ebx, [esp + 0x3e]
jmp 0x4a76f8
lea ebx, [esp + 0x3d]
jmp 0x4a76f8
lea ebx, [esp + 0x3c]
jmp 0x4a76f8
lea eax, [esp + 0x3c]
jmp 0x4a7538