Function at 0x4345d0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebp, dword [esp + 0x54]
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebp
mov dword [esp], str.hosts:
call sub.msvcrt.dll_fwrite
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
movsx eax, byte [eax + ecx + 0x580]
test al, al
je 0x434644
test eax, eax
je 0x434644
mov ecx, dword [esp + 0x24]
lea edx, [ecx + 1]
cmp eax, 0x6d
jbe 0x434660
cmp edx, 0x23
ja 0x434644
mov eax, dword [esp + 0x50]
movsx eax, byte [eax + edx + 0x580]
test al, al
je 0x434644
mov dword [esp + 0x24], edx
test eax, eax
jne 0x43461b
mov dword [esp + 4], ebp
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
movsx eax, byte [eax + 0x484ce0]
lea ecx, [eax - 8]
cmp ecx, 2
ja 0x434627
mov dword [esp + 0x20], edx
mov edi, edx
cmp edx, 0x23
ja 0x43468e
mov esi, dword [esp + 0x50]
movsx ecx, byte [esi + edx + 0x580]
test cl, cl
jne 0x434850
mov ebx, 6
mov edi, 6
mov esi, 7
mov dword [esp + 0x1c], 6
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
mov eax, dword [eax*4 + 0x484d80]
mov edx, 0x482aef
mov dword [esp + 4], 0x482d47
mov dword [esp], ebp
test eax, eax
cmove eax, edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
cmp esi, 7
jne 0x4347e0
cmp ebx, 6
je 0x4348c0
mov dword [esp + 4], ebp
mov dword [esp], 0x20
call sub.msvcrt.dll_fputc
mov dword [esp + 4], ebp
mov dword [esp], 0x5b
call sub.msvcrt.dll_fputc
mov eax, dword [ebx*4 + 0x484d80]
mov edx, 0x482aef
mov dword [esp], ebp
mov dword [esp + 8], str.NOTFOUND
test eax, eax
mov dword [esp + 4], str._s_s
cmove eax, edx
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fprintf
cmp dword [esp + 0x1c], 6
je 0x434840
mov dword [esp + 4], ebp
mov dword [esp], 0x20
call sub.msvcrt.dll_fputc
mov eax, dword [esp + 0x1c]
mov edx, 0x482aef
mov dword [esp], ebp
mov dword [esp + 8], str.UNAVAIL
mov eax, dword [eax*4 + 0x484d80]
mov dword [esp + 4], str._s_s
test eax, eax
cmove eax, edx
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fprintf
cmp edi, 6
je 0x4347bf
mov dword [esp + 4], ebp
mov dword [esp], 0x20
call sub.msvcrt.dll_fputc
mov eax, dword [edi*4 + 0x484d80]
mov edx, 0x482aef
mov dword [esp], ebp
mov dword [esp + 8], str.TRYAGAIN
test eax, eax
mov dword [esp + 4], str._s_s
cmove eax, edx
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fprintf
mov dword [esp + 4], ebp
mov dword [esp], 0x5d
call sub.msvcrt.dll_fputc
cmp dword [esp + 0x20], 0x23
ja 0x434644
jmp 0x434603
mov dword [esp + 4], ebp
mov dword [esp], 0x20
call sub.msvcrt.dll_fputc
mov dword [esp + 4], ebp
mov dword [esp], 0x5b
call sub.msvcrt.dll_fputc
mov dword [esp + 0xc], str.continue
mov dword [esp + 8], str.SUCCESS
mov dword [esp + 4], str._s_s
mov dword [esp], ebp
call sub.msvcrt.dll_fprintf
cmp ebx, 6
je 0x434731
mov dword [esp + 4], ebp
mov dword [esp], 0x20
call sub.msvcrt.dll_fputc
jmp 0x434704
cmp edi, 6
je 0x4347bf
jmp 0x434782
test ecx, ecx
je 0x43468e
mov edx, dword [esp + 0x24]
add edx, 2
cmp edx, 0x24
je 0x4348f0
movzx edx, byte [esi + edx + 0x580]
test dl, dl
je 0x43468e
movsx ebx, dl
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x43468e
mov dword [esp + 0x28], ecx
mov edx, 6
mov ebx, 6
mov esi, 7
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edi
mov edi, 6
cmp dword [esp + 0x28], 0x6d
jbe 0x434914
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
jmp 0x4346a5
cmp dword [esp + 0x1c], 6
je 0x4349f9
mov dword [esp + 4], ebp
mov dword [esp], 0x20
call sub.msvcrt.dll_fputc
mov dword [esp + 4], ebp
mov dword [esp], 0x5b
call sub.msvcrt.dll_fputc
jmp 0x43474c
mov ebx, 6
mov edi, 6
mov dword [esp + 0x1c], 6
mov esi, 7
mov dword [esp + 0x20], 0x23
jmp 0x4346a5
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x2c], 0x6d
movzx ecx, byte [eax + 0x484ce0]
mov byte [esp + 0x28], cl
ja 0x4348ae
mov eax, dword [esp + 0x2c]
movsx ecx, byte [eax + 0x484ce0]
lea eax, [ecx - 6]
cmp eax, 1
ja 0x4348ae
cmp byte [esp + 0x28], 3
je 0x4349bb
jle 0x4349ac
movzx eax, byte [esp + 0x28]
cmp al, 4
je 0x4349b7
cmp al, 5
jne 0x4349bf
mov edi, ecx
add dword [esp + 0x20], 2
mov eax, dword [esp + 0x20]
cmp eax, 0x24
je 0x4348ae
mov ecx, eax
mov eax, dword [esp + 0x50]
movzx ecx, byte [eax + ecx + 0x580]
test cl, cl
je 0x4348ae
movsx eax, cl
mov dword [esp + 0x28], eax
test eax, eax
je 0x4348ae
cmp dword [esp + 0x24], 0x21
jne 0x4349cc
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 0x23
mov dword [esp + 0x1c], edx
jmp 0x4346a5
cmp byte [esp + 0x28], 2
jne 0x4349bf
mov esi, ecx
jmp 0x434959
mov edx, ecx
jmp 0x434959
mov ebx, ecx
jmp 0x434959
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
jmp 0x4346ad
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
movsx eax, byte [eax + ecx + 0x581]
test al, al
je 0x4348ae
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
test eax, eax
jne 0x4348a7
jmp 0x4348ae
cmp edi, 6
je 0x4347cf
mov dword [esp + 4], ebp
mov dword [esp], 0x20
call sub.msvcrt.dll_fputc
mov dword [esp + 4], ebp
mov dword [esp], 0x5b
call sub.msvcrt.dll_fputc
jmp 0x434792