Function at 0x404230
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
push ebx
push esi
push edi
cmp dword [0x40e2ac], eax
je 0x4042a9
mov dword [0x40e2ac], eax
cmp dword [0x411be0], eax
jne 0x40425c
mov dword [0x411be0], 1
cmp dword [0x411bd4], eax
jne 0x404270
push eax
call fcn.0040ccf9
pop ecx
mov dword [0x411bd4], eax
cmp dword [0x411bdc], 0
jne 0x404286
push 1
call fcn.0040ccf9
pop ecx
mov dword [0x411bdc], eax
mov ebx, dword [0x411be4]
test ebx, ebx
jne 0x4042a2
mov ecx, 0x4000
call fcn.00404e13
mov ebx, eax
mov dword [0x411be4], ebx
call fcn.00404de7
jmp 0x4042af
mov ebx, dword [0x411be4]
mov cl, byte [0x411c1c]
mov eax, dword [0x411bd8]
mov esi, eax
mov dword [ebp - 0xc], esi
mov byte [eax], cl
mov eax, dword [ebx + 0x1c]
mov ebx, eax
add ebx, dword [0x411be0]
mov dword [ebp - 8], eax
xor edi, edi
movzx eax, byte [esi]
lea ecx, [ebx + ebx]
mov al, byte [eax*4 + 0x401320]
mov byte [ebp - 1], al
cmp word [ecx + 0x401c50], di
je 0x404319
mov dword [0x411c10], ebx
mov dword [0x411c14], esi
jmp 0x404319
movsx ebx, word [ecx + 0x402520]
cmp ebx, 0xb2
jl 0x404313
mov al, byte [edx*4 + 0x4024a0]
mov byte [ebp - 1], al
jmp 0x404316
mov al, byte [ebp - 1]
lea ecx, [ebx + ebx]
movzx edx, al
movsx eax, word [ecx + 0x4022f0]
add eax, edx
movsx eax, word [eax*2 + 0x401dc0]
cmp eax, ebx
jne 0x4042f8
movsx ecx, word [ebx*2 + 0x4022f0]
movzx eax, byte [ebp - 1]
add ecx, eax
mov eax, 0x27a
inc esi
movsx ebx, word [ecx*2 + 0x401720]
cmp word [ebx*2 + 0x4022f0], ax
jne 0x4042d1
mov edi, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov ebx, dword [0x411be4]
mov eax, dword [ebp - 8]
movsx eax, word [eax*2 + 0x401c50]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x40438f
mov eax, dword [0x411c10]
mov esi, dword [0x411c14]
movsx eax, word [eax*2 + 0x401c50]
mov dword [ebp - 0xc], eax
mov cl, byte [esi]
mov eax, esi
sub eax, edi
mov byte [0x411c1c], cl
mov dword [0x412938], eax
mov edx, edi
xor eax, eax
mov dword [0x41293c], edx
mov byte [esi], al
mov eax, dword [ebp - 0xc]
mov dword [0x411bd8], esi
cmp eax, 0x19
ja case.default.0x4043be
jmp dword [eax*4 + 0x4049d4]
mov eax, esi
mov byte [esi], cl
sub eax, edx
dec eax
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebx + 0x24], eax
jne 0x4043ec
mov eax, dword [ebx + 0x10]
mov dword [0x411c18], eax
mov eax, dword [0x411bd4]
mov dword [ebx], eax
mov dword [ebx + 0x24], 1
mov eax, dword [ebx + 4]
add eax, dword [0x411c18]
cmp dword [0x411bd8], eax
jbe 0x40448c
call fcn.00404a3c
xor ecx, ecx
sub eax, ecx
je 0x4044ba
sub eax, 1
jne 0x40445c
mov eax, dword [0x41293c]
mov ebx, dword [0x411be4]
mov dword [0x411bd8], eax
mov eax, dword [0x411be0]
dec eax
mov dword [0x411c20], ecx
mov cl, byte [0x411c1c]
cdq
sub eax, edx
mov edx, dword [0x41293c]
sar eax, 1
add eax, 0x19
jmp 0x4043b5
mov eax, dword [0x411c10]
mov byte [esi], cl
mov esi, dword [0x411c14]
jmp 0x40436a
sub eax, 1
jne 0x4042a9
mov ebx, dword [0x411be4]
mov esi, dword [0x411c18]
mov ecx, dword [ebx + 4]
add esi, ecx
mov dword [0x411bd8], esi
call fcn.00404c7c
mov edi, dword [0x41293c]
jmp 0x40436a
mov esi, dword [ebp - 8]
add esi, edx
mov dword [0x411bd8], esi
call fcn.00404c7c
mov ecx, eax
mov dword [ebp - 8], eax
call fcn.00404d23
mov edi, dword [0x41293c]
mov dword [ebp - 0xc], edi
test eax, eax
je 0x404367
inc esi
jmp 0x4044d3
mov edi, dword [0x41293c]
mov esi, dword [ebp - 8]
add esi, edi
mov dword [ebp - 0xc], edi
mov dword [0x411bd8], esi
call fcn.00404c7c
mov dword [ebp - 8], eax
mov ebx, eax
jmp 0x4042cf
mov esi, dword [0x412938]
test esi, esi
jle 0x4042b5
xor eax, eax
cmp byte [esi + edx - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
jmp 0x4042b5
mov ecx, dword [0x412938]
test ecx, ecx
jle 0x404514
xor eax, eax
cmp byte [ecx + edx - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
push dword [0x411bdc]
push 1
push ecx
push edx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
jmp 0x4042a9
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41293c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x40455f
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404564
sub ecx, edx
cmp ecx, 0x100
jb 0x40457c
push 0x2f
jmp 0x4046db
xor edx, edx
mov ecx, edi
jmp 0x404668
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41293c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x4045b8
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4045bd
sub ecx, edx
cmp ecx, 0x100
jae 0x404575
mov ecx, edi
jmp 0x404665
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41293c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle case.0x4043be.25
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41293c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x404644
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
mov esi, str.A.ROOT_SERVERS.NET.
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40464e
sub ecx, edx
cmp ecx, 0x100
jae 0x404575
mov ecx, esi
xor edx, edx
inc edx
call fcn.00408ecd
jmp 0x4046e4
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41293c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x4046d9
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
jmp 0x4046d9
mov byte [esi], cl
dec esi
mov edx, esi
mov dword [0x41293c], edi
sub edx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], edx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test edx, edx
jle 0x4046d9
xor ecx, ecx
cmp byte [edx + edi - 1], 0xa
sete cl
mov dword [ebx + 0x1c], ecx
push 0x25
push 2
call fcn.0040b1f1
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x40460a
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41293c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x40471f
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
call fcn.004087e6
jmp 0x4046e4
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41293c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x404759
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
inc edx
call fcn.004075a8
jmp 0x4046e4
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41293c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x404796
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
jmp 0x40475c
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41293c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x4047cd
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
inc edx
call fcn.0040748e
jmp 0x4046e4
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41293c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x40480d
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
jmp 0x4047d0
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41293c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x404844
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
mov ecx, edi
call fcn.004094c2
jmp 0x4046e4
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x411bd8], esi
sub ecx, edi
mov dword [0x41293c], edi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x404883
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
push 0xcf
push 1
jmp 0x4046dd
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41293c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x4048c2
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
inc edx
mov ecx, edi
call fcn.004091e0
jmp 0x4046e4
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41293c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x404904
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
jmp 0x4048c5
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41293c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x40493b
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
inc edx
call fcn.00409319
jmp 0x4046e4
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41293c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412938], ecx
mov al, byte [esi]
mov byte [0x411c1c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x40497b
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
jmp 0x40493e
mov ecx, dword [0x412938]
test ecx, ecx
jle 0x4046e4
xor eax, eax
cmp byte [ecx + edx - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
jmp 0x4046e4
mov ecx, dword [0x412938]
test ecx, ecx
jle 0x4049b6
xor eax, eax
cmp byte [ecx + edx - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
push edx
push 0x401204
call dword [sym.imp.msvcrt.dll_printf]
jmp 0x4046e2
mov ecx, 0x401220
call fcn.00404ea6
lea ecx, [ecx]
dec edx
inc esp
inc eax
add byte [eax*2 + 0x45850040], ch
inc eax
add ch, dl
inc ebp
inc eax
add ch, dl
inc ebp
inc eax
add byte [ecx], dl
inc esi
inc eax
add byte [edi + 0x46], ch
inc eax
add byte [esi + eax*2 + 0x46ec0040], ah
inc eax
add byte [esi], ah
inc edi
inc eax
add byte [ebx + 0x47], ah
inc eax
add byte [edx - 0x25ffbfb9], bl
inc edi
inc eax
add byte [ecx], dl
dec eax
inc eax
add byte [eax + 0x48], dl
inc eax
add byte [eax + 0x48], dl
inc eax
add byte [edi - 0x2effbfb8], cl
dec eax
inc eax
add byte [eax], cl
dec ecx
inc eax
add byte [eax + 0x49], cl
inc eax
add byte [edi + 0x49], bh
inc eax
add byte [edi - 0x22ffbfb7], bl
inc esp
inc eax
add ch, bh
inc esp
inc eax
add ch, al
inc ebx
inc eax
add byte [eax], cl
inc esi
inc eax
add byte [ebx - 0x1374aa01], cl
mov edi, edi
push ebp
mov ebp, esp