Function at 0x42b500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov eax, 0x184c
push edi
push esi
push ebx
call fcn.008e9550
mov ebx, dword [esp + 0x1864]
cmp ebx, 2
jg 0x42b550
mov edi, dword [sym.imp.msvcrt.dll__iob]
lea esi, [edi + 0x40]
mov edx, dword [esp + 0x1860]
mov eax, dword [edx*4 + 0xbd7e40]
cmp eax, 0xfffffffe
je 0x42b880
cmp ebx, eax
jle 0x42b560
add esp, 0x184c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [sym.imp.msvcrt.dll__iob]
lea esi, [edi + 0x20]
jmp 0x42b523
mov eax, dword [esp + 0x186c]
mov dword [esp + 4], 0xc00
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1868]
mov dword [esp + 8], eax
lea eax, [esp + 0xc30]
mov dword [esp + 0x2c], eax
mov dword [esp], eax
call fcn.008e9a00
mov eax, dword [0xbd7e2c]
mov byte [esp + 0x182e], 0xa
mov byte [esp + 0x182f], 0
test eax, eax
je 0x42b75f
mov dword [esp + 4], str.noconv
mov dword [esp], eax
call sub.msvcrt.dll__stricmp_1
test eax, eax
je 0x42b75f
lea edx, [esp + 0xc30]
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x42b5cd
test eax, 0x8080
je 0x42b905
add al, al
mov ebp, dword [0xbd7f40]
sbb edx, 3
sub edx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
test ebp, ebp
mov dword [esp + 0x183c], edx
lea edx, [esp + 0xc30]
mov dword [esp + 0x1838], 0xc00
mov dword [esp + 0x1834], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1830], eax
je 0x42b65a
mov eax, dword [0xbd7e2c]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x42b686
mov dword [esp], ebp
call fcn.008f2ba8
mov eax, dword [0xbd7f44]
mov dword [esp], eax
call fcn.0062ead0
mov eax, dword [0xbd7e2c]
mov dword [esp + 4], 0x9cd1c0
mov dword [esp], eax
call fcn.0063c930
mov dword [0xbd7f44], eax
mov eax, dword [0xbd7e2c]
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov dword [0xbd7f40], eax
mov edx, dword [0xbd7f44]
cmp edx, 0xffffffff
je 0x42b985
mov edi, dword [esp + 0x28]
mov ecx, 0x300
xor eax, eax
lea ebp, [esp + 0x1838]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x1830]
jmp 0x42b705
mov eax, dword [esp + 0x183c]
test eax, eax
je 0x42b730
mov ecx, dword [esp + 0x1838]
test ecx, ecx
je 0x42b730
mov eax, dword [esp + 0x1834]
mov edx, dword [esp + 0x1830]
movzx ecx, byte [eax]
add eax, 1
mov byte [edx], cl
add edx, 1
mov dword [esp + 0x1830], edx
mov edx, dword [0xbd7f44]
sub dword [esp + 0x1838], 1
sub dword [esp + 0x183c], 1
mov dword [esp + 0x1834], eax
lea eax, [esp + 0x183c]
mov dword [esp + 8], eax
lea eax, [esp + 0x1834]
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0062d6b0
cmp eax, 0xffffffff
je 0x42b6b2
lea edx, [esp + 0x30]
lea eax, [esp + 0xc30]
mov dword [esp + 8], 0xc00
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_strncpy
mov byte [esp + 0x182f], 0
mov byte [esp + 0x182e], 0xa
cmp ebx, 5
jne 0x42b890
xor eax, eax
cmp ebx, 5
sete al
mov dword [0xbd7f48], eax
mov eax, dword [0x913300]
test eax, eax
je 0x42b7e6
mov ebp, dword [0xbd7e28]
test ebp, ebp
je 0x42b7e6
mov edi, dword [0xbd7e24]
test edi, edi
jne 0x42b935
mov edx, dword [esp + 0x1860]
mov dword [esp + 4], 0x9cd227
mov dword [esp], esi
mov eax, dword [edx*4 + 0x9cd380]
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
mov ecx, dword [0xbd7e24]
test ecx, ecx
jne 0x42b910
mov dword [esp + 0xc], esi
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x9cd233
call sub.msvcrt.dll_fwrite
mov edx, dword [0xbd7e24]
movzx eax, byte [ebx + 0x9cd480]
test edx, edx
jne 0x42b8b3
lea edx, [esp + 0xc30]
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x42b802
test eax, 0x8080
jne 0x42b825
shr eax, 0x10
add edx, 2
add al, al
sbb edx, 3
xor eax, eax
sub edx, dword [esp + 0x2c]
je 0x42b84b
movzx edx, byte [esp + edx + 0xc2f]
cmp dl, 0xd
sete al
cmp dl, 0xa
sete dl
or eax, edx
movzx eax, al
mov dword [0x913300], eax
lea eax, [esp + 0xc30]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_fputs
mov eax, dword [0xbd7e24]
test eax, eax
jne 0x42b8e0
mov dword [esp], esi
call sub.msvcrt.dll_fflush
add esp, 0x184c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0xbd7e20]
add eax, dword [0x9132fc]
jmp 0x42b53a
mov edx, dword [0xbd7f48]
test edx, edx
je 0x42b768
mov dword [esp + 4], esi
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
jmp 0x42b768
movzx eax, al
mov edx, eax
and edx, 7
sar eax, 3
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.e__d_3_dm
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
jmp 0x42b7fb
mov dword [esp + 0xc], esi
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], str.e_0m
call sub.msvcrt.dll_fwrite
jmp 0x42b86c
shr eax, 0x10
add edx, 2
jmp 0x42b5ee
mov dword [esp + 0xc], esi
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], str.e_0_37m
call sub.msvcrt.dll_fwrite
jmp 0x42b7c6
mov ecx, dword [esp + 0x1860]
mov edx, 0x88888889
mov dword [esp + 4], str.e__d_3_dm
mov dword [esp], esi
add ecx, 1
mov eax, ecx
imul edx
mov eax, ecx
sar eax, 0x1f
add edx, ecx
sar edx, 3
sub edx, eax
mov eax, edx
shl eax, 4
sub eax, edx
sub ecx, eax
add ecx, 1
mov eax, ecx
and eax, 7
sar ecx, 3
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call sub.msvcrt.dll_fprintf
jmp 0x42b796
mov eax, dword [0xbd7e2c]
add edi, 0x40
mov dword [esp + 8], 0x9cd1c0
mov dword [esp + 4], str.iconv:_conversion_from__s_to__s_unsupported_n
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fprintf
jmp 0x42b75f