Function at 0x404250
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 0x4042c9
mov dword [0x40e2ac], eax
cmp dword [0x411be0], eax
jne 0x40427c
mov dword [0x411be0], 1
cmp dword [0x411bd4], eax
jne 0x404290
push eax
call fcn.0040cd89
pop ecx
mov dword [0x411bd4], eax
cmp dword [0x411bdc], 0
jne 0x4042a6
push 1
call fcn.0040cd89
pop ecx
mov dword [0x411bdc], eax
mov ebx, dword [0x411be4]
test ebx, ebx
jne 0x4042c2
mov ecx, 0x4000
call fcn.00404e15
mov ebx, eax
mov dword [0x411be4], ebx
call fcn.00404de9
jmp 0x4042cf
mov ebx, dword [0x411be4]
mov cl, byte [0x411c5c]
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 + 0x401330]
mov byte [ebp - 1], al
cmp word [ecx + 0x401c60], di
je 0x404339
mov dword [0x411c50], ebx
mov dword [0x411c54], esi
jmp 0x404339
movsx ebx, word [ecx + 0x402530]
cmp ebx, 0xb2
jl 0x404333
mov al, byte [edx*4 + 0x4024b0]
mov byte [ebp - 1], al
jmp 0x404336
mov al, byte [ebp - 1]
lea ecx, [ebx + ebx]
movzx edx, al
movsx eax, word [ecx + 0x402300]
add eax, edx
movsx eax, word [eax*2 + 0x401dd0]
cmp eax, ebx
jne 0x404318
movsx ecx, word [ebx*2 + 0x402300]
movzx eax, byte [ebp - 1]
add ecx, eax
mov eax, 0x27a
inc esi
movsx ebx, word [ecx*2 + 0x401730]
cmp word [ebx*2 + 0x402300], ax
jne 0x4042f1
mov edi, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov ebx, dword [0x411be4]
mov eax, dword [ebp - 8]
movsx eax, word [eax*2 + 0x401c60]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4043af
mov eax, dword [0x411c50]
mov esi, dword [0x411c54]
movsx eax, word [eax*2 + 0x401c60]
mov dword [ebp - 0xc], eax
mov cl, byte [esi]
mov eax, esi
sub eax, edi
mov byte [0x411c5c], cl
mov dword [0x412918], eax
mov edx, edi
xor eax, eax
mov dword [0x41291c], edx
mov byte [esi], al
mov eax, dword [ebp - 0xc]
mov dword [0x411bd8], esi
cmp eax, 0x19
ja case.default.0x4043de
jmp dword [eax*4 + 0x4049f0]
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 0x40440c
mov eax, dword [ebx + 0x10]
mov dword [0x411c58], eax
mov eax, dword [0x411bd4]
mov dword [ebx], eax
mov dword [ebx + 0x24], 1
mov eax, dword [ebx + 4]
add eax, dword [0x411c58]
cmp dword [0x411bd8], eax
jbe 0x4044aa
call fcn.00404a58
xor ecx, ecx
sub eax, ecx
je 0x4044d8
sub eax, 1
jne 0x40447c
mov eax, dword [0x41291c]
mov ebx, dword [0x411be4]
mov dword [0x411bd8], eax
mov eax, dword [0x411be0]
dec eax
mov dword [0x411c60], ecx
mov cl, byte [0x411c5c]
cdq
sub eax, edx
mov edx, dword [0x41291c]
sar eax, 1
add eax, 0x19
jmp 0x4043d5
mov eax, dword [0x411c50]
mov byte [esi], cl
mov esi, dword [0x411c54]
jmp 0x40438a
sub eax, 1
jne 0x4042c9
mov ebx, dword [0x411be4]
mov esi, dword [ebx + 4]
add esi, dword [0x411c58]
mov dword [0x411bd8], esi
call fcn.00404c80
mov edi, dword [0x41291c]
jmp 0x40438a
mov esi, dword [ebp - 8]
add esi, edx
mov dword [0x411bd8], esi
call fcn.00404c80
mov ecx, eax
mov dword [ebp - 8], eax
call fcn.00404d27
mov edi, dword [0x41291c]
mov dword [ebp - 0xc], edi
test eax, eax
je 0x404387
inc esi
jmp 0x4044f1
mov edi, dword [0x41291c]
mov esi, dword [ebp - 8]
add esi, edi
mov dword [ebp - 0xc], edi
mov dword [0x411bd8], esi
call fcn.00404c80
mov dword [ebp - 8], eax
mov ebx, eax
jmp 0x4042ef
mov esi, dword [0x412918]
test esi, esi
jle 0x4042d5
xor eax, eax
cmp byte [esi + edx - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
jmp 0x4042d5
mov ecx, dword [0x412918]
test ecx, ecx
jle 0x404532
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 0x4042c9
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41291c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x40457d
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 0x404582
sub ecx, edx
cmp ecx, 0x100
jb 0x40459a
push 0x2f
jmp 0x4046f7
xor edx, edx
mov ecx, edi
jmp 0x404684
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41291c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x4045d6
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 0x4045db
sub ecx, edx
cmp ecx, 0x100
jae 0x404593
mov ecx, edi
jmp 0x404681
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41291c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle case.0x4043de.25
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41291c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x404660
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 0x40466a
sub ecx, edx
cmp ecx, 0x100
jae 0x404593
mov ecx, esi
xor edx, edx
inc edx
call fcn.0040923d
jmp 0x404700
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41291c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x4046f5
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
jmp 0x4046f5
mov byte [esi], cl
dec esi
mov edx, esi
mov dword [0x41291c], edi
sub edx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], edx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test edx, edx
jle 0x4046f5
xor ecx, ecx
cmp byte [edx + edi - 1], 0xa
sete cl
mov dword [ebx + 0x1c], ecx
push 0x25
push 2
call fcn.0040b547
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x404628
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41291c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x40473b
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
call fcn.00408b81
jmp 0x404700
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41291c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x404775
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
inc edx
call fcn.00407931
jmp 0x404700
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41291c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x4047b2
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
jmp 0x404778
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41291c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x4047e9
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
inc edx
call fcn.00407819
jmp 0x404700
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41291c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x404829
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
jmp 0x4047ec
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41291c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x404860
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
mov ecx, edi
call fcn.0040982a
jmp 0x404700
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x411bd8], esi
sub ecx, edi
mov dword [0x41291c], edi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x40489f
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
push 0xcf
push 1
jmp 0x4046f9
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41291c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x4048de
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
inc edx
mov ecx, edi
call fcn.0040954c
jmp 0x404700
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41291c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x404920
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
jmp 0x4048e1
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41291c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x404957
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
inc edx
call fcn.00409683
jmp 0x404700
mov byte [esi], cl
dec esi
mov ecx, esi
mov dword [0x41291c], edi
sub ecx, edi
mov dword [0x411bd8], esi
mov dword [0x412918], ecx
mov al, byte [esi]
mov byte [0x411c5c], al
xor eax, eax
mov byte [esi], al
test ecx, ecx
jle 0x404997
cmp byte [ecx + edi - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
xor edx, edx
jmp 0x40495a
mov ecx, dword [0x412918]
test ecx, ecx
jle 0x404700
xor eax, eax
cmp byte [ecx + edx - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
jmp 0x404700
mov ecx, dword [0x412918]
test ecx, ecx
jle 0x4049d2
xor eax, eax
cmp byte [ecx + edx - 1], 0xa
sete al
mov dword [ebx + 0x1c], eax
push edx
push 0x401214
call dword [sym.imp.msvcrt.dll_printf]
jmp 0x4046fe
mov ecx, 0x401230
call fcn.00404ea8
lea ecx, [ecx]
push 0x44
inc eax
add byte [edx + 0x45], cl
inc eax
add byte [ebx - 0xcffbfbb], ah
inc ebp
inc eax
add bl, dh
inc ebp
inc eax
add byte [0x8b004046], ch
inc esi
inc eax
add al, al
inc esi
inc eax
add byte [eax], cl
inc edi
inc eax
add byte [edx + 0x47], al
inc eax
add byte [edi + 0x47], bh
inc eax
add byte [esi - 0x9ffbfb9], dh
inc edi
inc eax
add byte [0x6c004048], ch
dec eax
inc eax
add byte [eax + ecx*2 + 0x40], ch
add byte [ebx - 0x12ffbfb8], ch
dec eax
inc eax
add byte [ecx + ecx*2], ah
inc eax
add byte [ecx + ecx*2 + 0x40], ah
add byte [ebx - 0x44ffbfb7], bl
dec ecx
inc eax
add bl, bh
inc esp
inc eax
add byte [ebx], bl
inc ebp
inc eax
add ch, ah
inc ebx
inc eax
add byte [esi], ah
inc esi
inc eax
add byte [ebx - 0x1374aa01], cl
mov edi, edi
push ebp
mov ebp, esp