Function at 0x1017548
Capabilities:
Write file on windows

Disassembly:
inc dword [0x111b800]
jmp 0x1017677
mov eax, dword [0x111c77c]
lea esi, [eax + edi]
mov dword [0x112c7ac], esi
call fcn.01027dc0
mov ecx, dword [0x111c77c]
jmp 0x101758a
mov eax, 0x105
jmp 0x1017694
mov eax, 0x106
jmp 0x1017694
mov eax, 0x107
jmp 0x1017694
mov eax, 0x10d
jmp 0x1017694
mov eax, 0x10f
jmp 0x1017694
mov eax, 0x110
jmp 0x1017694
mov eax, 0x111
jmp 0x1017694
mov eax, 0x112
jmp 0x1017694
mov eax, 0x118
jmp 0x1017694
mov eax, 0x119
jmp 0x1017694
mov eax, 0x11a
jmp 0x1017694
push 0x1f
push 0x111c6f8
push 0xffffffffffffffff
push ecx
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [0x111c734], si
mov eax, 0x102
jmp 0x1017694
add ecx, 2
push 0x10
push 0
push ecx
call dword [sym.imp.msvcrt.dll_strtol]
add esp, 0xc
jmp 0x1019fd6
dec esi
sub edi, 4
mov eax, dword [edi]
lea edx, [eax + eax]
movsx eax, word [edx + 0x100dcf8]
jmp 0x1017607
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
inc eax
xor esi, esi
cmp dword [0x111b7fc], esi
mov dword [edi], eax
jne 0x102ff30
push ebx
mov ecx, dword [0x112c7ac]
mov al, byte [0x112c7a4]
mov byte [ecx], al
mov eax, dword [0x112c7b0]
mov esi, ecx
mov dword [0x111c790], eax
mov dword [0x111c788], 0x111c794
movzx edx, byte [esi]
mov dl, byte [edx*4 + 0x100ddf8]
mov byte [ebp - 1], dl
movzx edx, dl
lea edi, [eax + eax]
movsx ebx, word [edi + 0x1027e58]
add ebx, edx
movsx ebx, word [ebx*2 + 0x100e470]
cmp ebx, eax
jne 0x1017800
movsx eax, word [eax*2 + 0x1027e58]
movzx edx, byte [ebp - 1]
add eax, edx
movsx eax, word [eax*2 + 0x100e300]
mov edx, dword [0x111c788]
add dword [0x111c788], 4
inc esi
cmp eax, 0x7c
mov dword [edx], eax
jne 0x101758a
mov ebx, dword [0x112c7a8]
mov edi, dword [0x111c788]
sub edi, 4
mov eax, dword [edi]
lea edx, [eax + eax]
movsx eax, word [edx + 0x100dcf8]
mov dword [0x111c788], edi
mov dword [0x111c780], eax
test eax, eax
je 0x101752e
movsx edx, word [edx + 0x100dcfa]
cmp eax, edx
jge 0x101752e
mov edx, esi
sub edx, ecx
mov dword [0x111c780], eax
movsx eax, word [eax*2 + 0x10176a0]
cmp eax, 0x26
mov dword [0x111c77c], ecx
mov dword [0x112c79c], edx
mov cl, byte [esi]
mov byte [0x112c7a4], cl
mov byte [esi], 0
mov ecx, dword [0x111c77c]
mov dword [0x111c788], edi
mov dword [0x111c784], esi
mov dword [0x112c7ac], esi
je 0x1017680
xor edx, edx
cmp dword [0x112c79c], edx
jle 0x1017680
cmp byte [ecx + edx], 0xa
je 0x1016b6b
inc edx
cmp edx, dword [0x112c79c]
jl 0x101766d
dec eax
cmp eax, 0x28
ja case.default.0x101768a
jmp dword [eax*4 + 0x10300ad]
movsx eax, byte [ecx]
pop ebx
pop edi
pop esi
leave
ret 4
movsx eax, word [edi + 0x100e1f8]
cmp eax, 0x7d
jl 0x1017816
mov dl, byte [edx*4 + 0x1017820]
mov byte [ebp - 1], dl
movzx edx, byte [ebp - 1]
jmp 0x101759a
push ecx
call dword [sym.imp.msvcrt.dll_atoi]
pop ecx
mov dword [0x111c6f8], eax
mov eax, 0x103
jmp 0x1017694
push ecx
call fcn.0101dcec
mov dword [0x111c6f8], eax
mov eax, 0x104
jmp 0x1017694
mov eax, dword [ebx + 0x10]
mov dword [0x112c7a0], eax
mov eax, dword [0x112c7b4]
mov dword [ebx], eax
mov dword [ebx + 0x24], 1
jmp 0x1027d31
mov al, byte [0x112c7a4]
mov edi, esi
sub edi, ecx
dec edi
mov byte [esi], al
cmp dword [ebx + 0x24], 0
je 0x1027d07
mov eax, dword [ebx + 4]
add eax, dword [0x112c7a0]
cmp dword [0x112c7ac], eax
jbe 0x102ff99
call fcn.01025e64
cmp eax, 0xffffffff
je 0x103018e
test eax, eax
je 0x1016b76
cmp eax, 1
jne 0x1027d8d
and dword [0x112c798], 0
mov eax, dword [0x112c7b0]
mov ecx, dword [0x111c77c]
mov ebx, dword [0x112c7a8]
dec eax
cdq
sub eax, edx
sar eax, 1
mov dword [0x112c7ac], ecx
add eax, 0x27
jmp 0x1017680
cmp eax, 2
jne case.0x101768a.31
mov ebx, dword [0x112c7a8]
mov esi, dword [ebx + 4]
add esi, dword [0x112c7a0]
mov dword [0x112c7ac], esi
call fcn.01027dc0
mov ecx, dword [0x111c77c]
jmp 0x10175e7
cmp dword [0x112c7b0], esi
mov dword [0x111b7fc], esi
jne 0x102ff43
mov dword [0x112c7b0], eax
cmp dword [0x112c7b4], esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
jne 0x102ff55
mov dword [0x112c7b4], eax
cmp dword [0x112c7b8], esi
jne 0x102ff65
add eax, 0x20
mov dword [0x112c7b8], eax
cmp dword [0x112c7a8], esi
je 0x102ff77
call fcn.01050d7a
jmp 0x1017566
push 0x4000
push dword [0x112c7b4]
call fcn.01051752
cmp eax, esi
mov dword [0x112c7a8], eax
jne 0x102ff6d
mov dword [edi], esi
xor eax, eax
jmp 0x1017695
mov eax, dword [0x111c77c]
lea esi, [eax + edi]
mov dword [0x112c7ac], esi
call fcn.01027dc0
call fcn.010ec5a5
test eax, eax
mov ecx, dword [0x111c77c]
je 0x10175e7
inc esi
jmp 0x101758a
mov dword [0x112c7b0], 3
jmp case.0x101768a.31
mov dword [0x112c7b0], 5
jmp case.0x101768a.31
mov dword [0x112c7b0], 1
jmp case.0x101768a.31
push dword [0x112c7b8]
push 1
push dword [0x112c79c]
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
jmp case.0x101768a.31
mov eax, 0x108
jmp 0x1017694
mov eax, 0x109
jmp 0x1017694
mov eax, 0x10a
jmp 0x1017694
mov eax, 0x10b
jmp 0x1017694
mov eax, 0x10c
jmp 0x1017694
mov eax, 0x10e
jmp 0x1017694
mov eax, 0x113
jmp 0x1017694
mov eax, 0x114
jmp 0x1017694
mov eax, 0x115
jmp 0x1017694
mov eax, 0x116
jmp 0x1017694
mov eax, 0x117
jmp 0x1017694
mov eax, 0x11b
jmp 0x1017694
inc ecx
jmp 0x1016c2a
and dword [0x111b800], 0
push 0x1030154
mov dword [0x111c77c], 0x106bb30
call fcn.010ec545
jmp 0x103018e
xor eax, eax
jmp 0x1017694
mov eax, dword [ebp + 8]
and dword [eax], 0
jmp case.0x101768a.39