Function at 0x401e50
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
mov ebx, ecx
sub esp, 0x18
call fcn.00401320
push ecx
push ecx
push 0x4a6456
push 2
call sub.msvcrt.dll_setlocale
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [0x4da9c0], eax
mov dword [esp], eax
call fcn.00487f20
pop eax
lea eax, [ebx + 4]
pop edx
push eax
push ebx
call fcn.00488430
call fcn.00403bc0
call fcn.00402f60
mov esi, dword [sym.imp.msvcrt.dll__iob]
add esp, 0x10
add esi, 0x40
lea esi, [esi]
sub esp, 0xc
push 0
push 0x4a4040
push str.ABHhVvdfotx
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx]
push eax
call fcn.004886e0
add esp, 0x20
cmp eax, 0xffffffff
je 0x401fa9
sub eax, 0x3f
cmp eax, 0x8b
ja case.0x401ee1.64
jmp dword [eax*4 + 0x4a64a8]
mov edx, dword [0x4d9d18]
mov al, byte [edx]
cmp al, 0x53
je case.0x401ee1.65
jle 0x40210a
cmp al, 0x62
jne 0x401f0a
mov dword [0x4a4020], 1
jmp case.0x401ee1.64
cmp al, 0x73
jne 0x402112
mov dword [0x4a4020], 0
jmp case.0x401ee1.64
sub esp, 0xc
mov edi, dword [0x4d9d18]
push edi
call sub.msvcrt.dll_atol
add esp, 0x10
cmp eax, 0xa
je case.0x401ee1.100
cmp eax, 0x10
jne 0x402012
mov dword [0x4d5038], 2
jmp case.0x401ee1.64
mov dword [0x4d5038], 1
jmp case.0x401ee1.64
mov dword [0x4d5038], 0
jmp case.0x401ee1.64
mov dword [0x4d5048], 1
jmp case.0x401ee1.64
mov dword [0x4d5058], 1
jmp case.0x401ee1.64
mov eax, dword [0x4d9d18]
mov dword [0x4d5028], eax
jmp case.0x401ee1.64
mov edx, 1
mov eax, esi
call fcn.00401410
jmp case.0x401ee1.64
mov eax, dword [0x4d5048]
test eax, eax
jne 0x402165
mov eax, dword [0x4d5068]
test eax, eax
jne 0x402139
mov edx, dword [0x4a5b00]
cmp edx, dword [ebx]
je 0x402156
jge 0x401fef
mov eax, dword [ebx + 4]
mov eax, dword [eax + edx*4]
inc edx
mov dword [0x4a5b00], edx
call fcn.00401d40
mov edx, dword [0x4a5b00]
cmp edx, dword [ebx]
jl 0x401fd3
mov eax, dword [0x4d5058]
test eax, eax
je 0x402001
mov eax, dword [0x4a4020]
test eax, eax
jne 0x40202e
mov eax, dword [0x4d5078]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
cmp eax, 8
je case.0x401ee1.111
push ecx
push ecx
mov edx, dword [0x4d9d18]
push edx
push str.Invalid_radix:__s_n
jmp 0x40211a
mov eax, dword [0x4d50c8]
mov edx, dword [0x4d50cc]
mov esi, dword [0x4d50d8]
mov edi, dword [0x4d50dc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [0x4d50b8]
mov edx, dword [0x4d50bc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, 7
mov edx, esi
mov ecx, edi
call fcn.004015e0
mov edx, dword [sym.imp.msvcrt.dll__iob]
lea ebx, [edx + 0x20]
mov eax, dword [ebx + 4]
dec eax
mov dword [ebx + 4], eax
test eax, eax
js 0x40218c
mov eax, dword [edx + 0x20]
mov byte [eax], 9
inc eax
mov dword [edx + 0x20], eax
mov eax, 7
mov edx, dword [0x4d50c8]
mov ecx, dword [0x4d50cc]
call fcn.004015e0
mov eax, dword [ebx + 4]
dec eax
mov dword [ebx + 4], eax
test eax, eax
js 0x40217a
mov eax, dword [ebx]
mov byte [eax], 9
inc eax
mov dword [ebx], eax
mov ecx, dword [0x4d50bc]
mov edx, dword [0x4d50b8]
mov eax, 7
call fcn.004015e0
mov ecx, str._t_7lo_t_7lx_t
cmp dword [0x4d5038], 1
je 0x4020e2
mov ecx, str._t_7lu_t_7lx_t
mov eax, dword [ebp - 0x20]
add eax, esi
add eax, dword [ebp - 0x18]
push edx
push eax
push eax
push ecx
call fcn.004015c0
push ebx
push 9
push 1
push str._TOTALS__n
call sub.msvcrt.dll_fwrite
add esp, 0x20
jmp 0x402001
cmp al, 0x42
je case.0x401ee1.66
push eax
push eax
push edx
push str.invalid_argument_to___format:__s
call fcn.00402720
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov edx, 1
call fcn.00401410
add esp, 0x10
jmp case.0x401ee1.64
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor edx, edx
add eax, 0x20
call fcn.00401410
mov edx, dword [0x4a5b00]
cmp edx, dword [ebx]
jne 0x401fd1
mov eax, str.a.out
call fcn.00401d40
jmp 0x401fef
sub esp, 0xc
push 0x4a6408
call fcn.00402fe0
add esp, 0x10
jmp 0x401fb6
push ecx
push ecx
push ebx
push 9
call fcn.004a39e8
add esp, 0x10
jmp 0x4020b9
push edi
push edi
push ebx
push 9
call fcn.004a39e8
add esp, 0x10
jmp 0x40208c