Function at 0x40b770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454df6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x5320
call fcn.0043dd40
mov eax, dword [0x46c6a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x103
lea eax, [ebp - 0x117]
push 0
push eax
mov byte [ebp - 0x118], 0
call fcn.0043b170
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x118]
push ecx
call dword [0x457320]
lea eax, [ebp - 0x118]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b7e0
mov edx, dword [str.driversetchosts]
mov ecx, dword [0x45eb0c]
mov dword [eax], edx
mov edx, dword [0x45eb10]
mov dword [eax + 4], ecx
mov ecx, dword [0x45eb14]
mov dword [eax + 8], edx
mov dx, word [0x45eb18]
mov dword [eax + 0xc], ecx
mov cl, byte [0x45eb1a]
mov word [eax + 0x10], dx
lea edx, [ebp - 0x118]
push edx
mov byte [eax + 0x12], cl
call dword [0x4573a0]
mov dword [ebp - 0x532c], eax
cmp eax, 0xffffffff
je 0x40bb70
call fcn.00417057
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b855
push 0x80004005
call fcn.00401710
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x5324], eax
mov dword [ebp - 4], 0
mov ecx, dword [str.fix_by_Laoqn_r_n]
mov edx, dword [0x45eb20]
mov eax, dword [0x45eb24]
mov dword [ebp - 0x5318], ecx
mov ecx, dword [0x45eb28]
mov dword [ebp - 0x5314], edx
mov dword [ebp - 0x5310], eax
mov dword [ebp - 0x530c], ecx
call fcn.00417057
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b8b7
push 0x80004005
call fcn.00401710
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x5320], ebx
lea ecx, [ebp - 0x118]
push 0x45e5c4
push ecx
mov byte [ebp - 4], 1
mov byte [ebp - 0x5319], 0
call fcn.004386fb
mov edi, eax
add esp, 8
mov dword [ebp - 0x5328], edi
test edi, edi
je 0x40bb27
push edi
lea edx, [ebp - 0x318]
push 0x200
push edx
call fcn.0043895b
add esp, 0xc
test eax, eax
je 0x40ba34
lea eax, [ebp - 0x318]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b920
sub eax, edx
push eax
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x5320]
call fcn.00403870
mov ebx, dword [ebp - 0x5320]
mov esi, dword [ebx - 0xc]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x40b968
push esi
lea ecx, [ebp - 0x5320]
call fcn.00403930
mov ebx, dword [ebp - 0x5320]
lea ecx, [esi + 1]
push ecx
push ebx
call fcn.00437253
push eax
call fcn.00404130
add esp, 0xc
test esi, esi
jl 0x40ba76
cmp esi, dword [ebx - 8]
jg 0x40ba76
mov dword [ebx - 0xc], esi
mov byte [esi + ebx], 0
cmp dword [ebx - 0xc], 0
jl 0x40b9d1
push str.laoqn.net
push ebx
call fcn.00438137
add esp, 8
test eax, eax
je 0x40b9b2
sub eax, ebx
cmp eax, 0xffffffff
jg 0x40ba10
cmp dword [ebx - 0xc], 0
jl 0x40b9d1
push str.tgs2011.com
push ebx
call fcn.00438137
add esp, 8
test eax, eax
je 0x40b9d1
sub eax, ebx
cmp eax, 0xffffffff
jg 0x40ba10
lea eax, [ebp - 0x318]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b9e0
lea edi, [ebp - 0x5318]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40b9f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x5328]
jmp 0x40ba17
mov byte [ebp - 0x5319], 1
push edi
lea edx, [ebp - 0x318]
push 0x200
push edx
call fcn.0043895b
add esp, 0xc
test eax, eax
jne 0x40b915
push edi
call fcn.0043a6cb
add esp, 4
cmp byte [ebp - 0x5319], 0
je 0x40bb27
push 0
push 1
push 0x45eb44
call fcn.0041854f
cmp eax, 1
je 0x40ba80
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x40bb3b
push 0x80070057
call fcn.00401710
lea ecx, [ebp - 0x118]
push ecx
mov byte [ebp - 4], 2
call fcn.00411eb0
test eax, eax
jne 0x40baa0
push eax
push eax
push 0x45eb8c
call fcn.0041854f
test byte [ebp - 0x532c], 1
je 0x40bab8
push 0x20
lea edx, [ebp - 0x118]
push edx
call dword [0x45730c]
mov dword [ebp - 4], 1
jmp 0x40bad4
lea eax, [ebp - 0x118]
push 0x45e9a4
push eax
call fcn.004386fb
mov esi, eax
add esp, 8
test esi, esi
je 0x40bb27
lea eax, [ebp - 0x5318]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40baf7
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x5318]
push ecx
call fcn.00439311
push esi
call fcn.0043a6cb
add esp, 0x14
push 0
push 0
push 0x45eba4
call fcn.0041854f
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40bb47
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5324]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00435339
mov esp, ebp
pop ebp
ret