Function at 0x4197c0
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
movzx ebx, byte [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov eax, dword [0x507634]
test eax, eax
je 0x4197e7
push eax
push str.e__uC
call fcn.00425350
add esp, 8
inc dword [0x50763c]
test edi, edi
je 0x4199a8
mov esi, dword [esp + 0x30]
test esi, esi
je 0x419815
push 0x4aaef8
push dword [esi + 8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4199a8
mov ebp, dword [esp + 0x34]
cmp byte [0x506391], 0
jne 0x419898
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 4
push 0x4aaefa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
cmp byte [0x506380], 0
je 0x419865
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 4
push str.e_1m
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
test esi, esi
je 0x41987b
mov eax, ebp
and eax, 2
jne 0x41987b
cmp dword [esi + 0x10], 0
je 0x41987b
lea eax, [esi + 0x14]
jmp 0x419889
mov eax, 0x506370
cmp dword [0x50636c], 0
je 0x419898
push dword [eax]
push 0x4aaf18
call fcn.00419a10
add esp, 8
test esi, esi
je 0x41992d
mov eax, ebp
and eax, 1
jne 0x41992d
cmp dword [esi + 4], 0
je 0x41992d
mov dword [esp], 0
mov dword [esp + 4], 0
mov eax, dword [0x5052b0]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
mov ecx, esp
push eax
push 1
push esi
push ecx
call fcn.00415920
add esp, 0x10
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push dword [esp + 8]
push 1
push dword [esp + 0x14]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
cmp dword [esp], 0
mov dword [esp + 4], 0
je 0x419957
mov dword [esp], 0
push dword [esp + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x419957
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
add esp, 8
test bl, bl
je 0x419957
movzx eax, bl
push eax
push str.__hhu
call fcn.00419a10
add esp, 8
cmp byte [0x506391], 0
jne 0x41997d
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 4
push 0x4aaefa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push dword [0x506388]
push 1
push dword [0x50638c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
cmp byte [0x506391], 0
je 0x4199b0
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 4
push 0x4aaefa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov eax, ebp
test al, 4
jne 0x4199a8
cmp byte [0x506391], 0
jne 0x4199a8
test esi, esi
je 0x4199e7
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4199f0
mov eax, dword [0x506410]
test eax, eax
je 0x4199a8
add eax, dword [0x507634]
push eax
push str.e__uG
call fcn.00419a10
add esp, 8
jmp 0x4199a8