Function at 0x405bb0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467a24
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x47d00c]
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
mov edi, ecx
mov dword [ebp - 0x234], edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20c], eax
xor al, al
mov dword [ebp - 4], 0
mov dword [ebp - 0x214], edi
mov byte [ebp - 0x1cd], al
mov byte [ebp - 0x1d9], al
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1ec], 0
lea eax, [ebp - 0x1e8]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1ec]
mov dword [ebp - 0x1e8], 0x50
push eax
lea edx, [ebp - 0x1e4]
call fcn.00404fd0
add esp, 8
lea eax, [ebp - 0x1e4]
mov ecx, edi
push dword [ebp - 0x1e8]
push eax
call fcn.00405a10
test al, al
je 0x406af2
push 0x1aa
lea eax, [ebp - 0x1c0]
push 0
push eax
call fcn.0044c9f0
push str.HTTP_1.1
lea eax, [ebp - 0xb7]
push 9
push eax
call fcn.00453bee
push str.Keep_Alive
lea eax, [ebp - 0x21]
push 0xb
push eax
call fcn.00453bee
mov eax, dword [ebp - 0x1e4]
add esp, 0x24
test eax, eax
jne 0x405cbf
lea eax, [ebp - 0x1e4]
jmp 0x405ced
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x1e4]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x1e4]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x405cea
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x1e4]
add eax, 0x10
push eax
lea eax, [ebp - 0x4a]
push 0x1e
push eax
call fcn.00453bee
mov eax, dword [ebp - 0x1ec]
add esp, 0xc
mov dword [ebp - 0x1cc], 0
test eax, eax
jne 0x405d18
lea eax, [ebp - 0x1ec]
jmp 0x405d40
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x1ec]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x405d3d
mov byte [ecx + eax + 0x10], 0
add eax, 0x10
push eax
lea ecx, [ebp - 0x1c8]
call fcn.00401460
push 0x4778f4
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0
push 5
push eax
mov byte [ebp - 0x1bc], 0
call fcn.00453bee
push 0x104
lea eax, [ebp - 0x1bb]
push 0
push eax
call fcn.0044c9f0
mov eax, dword [ebp - 0x1c8]
add esp, 0x18
test eax, eax
jne 0x405d98
lea eax, [ebp - 0x1c8]
jmp 0x405dc6
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x1c8]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x1c8]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x405dc3
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x1c8]
add eax, 0x10
push eax
lea eax, [ebp - 0x1bb]
push 0x104
push eax
call fcn.00453bee
push 0x64
lea eax, [ebp - 0xae]
push 0
push eax
call fcn.0044c9f0
push 0x4778d4
lea eax, [ebp - 0xae]
push 0x64
push eax
call fcn.00453bee
mov eax, dword [ebp - 0x1cc]
add esp, 0x24
mov word [ebp - 0x24], 0
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
mov byte [ebp - 0x22], 0
test eax, eax
je 0x405e63
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x405e63
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x1cc]
call fcn.004019f0
mov eax, dword [ebp - 0x1cc]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x405e4b
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x1cc]
add eax, 0x10
push eax
lea eax, [ebp - 0x2c]
push 0xb
push eax
call fcn.00453bee
mov eax, dword [ebp - 0x1cc]
add esp, 0xc
mov ecx, dword [ebp - 0x1c8]
or esi, 0xffffffff
test ecx, ecx
je 0x405e99
add ecx, 8
mov eax, esi
lock xadd dword [ecx], eax
jne 0x405e89
push dword [ebp - 0x1c8]
call fcn.0044ec66
add esp, 4
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1c8], 0
test eax, eax
je 0x405eb6
lea ecx, [eax + 8]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x405eb6
push dword [ebp - 0x1cc]
call fcn.0044ec66
add esp, 4
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x1c4], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405ed0
sub ecx, edx
lea eax, [ebp - 0x1c0]
push ecx
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00401a60
push 1
push 0x47787c
lea ecx, [ebp - 0x1c4]
call fcn.00401a60
lea ecx, [ebp - 0x1bb]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405f07
sub ecx, edx
lea eax, [ebp - 0x1bb]
push ecx
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00401a60
push 1
push 0x47787c
lea ecx, [ebp - 0x1c4]
call fcn.00401a60
lea ecx, [ebp - 0xb7]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405f40
sub ecx, edx
lea eax, [ebp - 0xb7]
push ecx
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00401a60
push 0xa
push str._r_nAccept:
lea ecx, [ebp - 0x1c4]
call fcn.00401a60
lea ecx, [ebp - 0xae]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405f77
sub ecx, edx
lea eax, [ebp - 0xae]
push ecx
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00401a60
push 8
push str._r_nHost:
lea ecx, [ebp - 0x1c4]
call fcn.00401a60
lea ecx, [ebp - 0x4a]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405fb0
sub ecx, edx
lea eax, [ebp - 0x4a]
push ecx
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00401a60
lea ecx, [ebp - 0x2c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405fd0
sub ecx, edx
je 0x40601e
push 0xf
push str._r_nRange:_bytes
lea ecx, [ebp - 0x1c4]
call fcn.00401a60
lea ecx, [ebp - 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405ff3
sub ecx, edx
lea eax, [ebp - 0x2c]
push ecx
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00401a60
push 1
push 0x4778a8
lea ecx, [ebp - 0x1c4]
call fcn.00401a60
push 0xe
push str._r_nConnection:
lea ecx, [ebp - 0x1c4]
call fcn.00401a60
lea ecx, [ebp - 0x21]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406036
sub ecx, edx
lea eax, [ebp - 0x21]
push ecx
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00401a60
push 4
push str._r_n_r_n
lea ecx, [ebp - 0x1c4]
call fcn.00401a60
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c4]
test eax, eax
je 0x4060a1
mov esi, dword [eax + 4]
lea ecx, [ebp - 0x1c4]
lea eax, [esi + 1]
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x40609c
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x1c4]
add eax, 0x10
jmp 0x4060a9
xor esi, esi
lea eax, [ebp - 0x1c4]
push 0
push esi
push eax
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x406b0d
push 0x20001
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1e0], 0
mov byte [ebp - 0x1ce], 0
call fcn.00414d84
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c8], esi
mov dword [ebp - 0x210], esi
jmp 0x4060fd
mov esi, dword [ebp - 0x1c8]
push 0x20001
push 0
push esi
call fcn.0044c9f0
mov ecx, dword [edi + 0x20]
add esp, 0xc
test ecx, ecx
je 0x406123
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x406b28
push 0
push 0x20000
push esi
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
mov dword [ebp - 0x240], esi
cmp esi, 0xffffffff
je 0x406b43
test esi, esi
je 0x406b5e
jle 0x4069e9
cmp byte [ebp - 0x1ce], 0
mov ecx, dword [ebp - 0x1c8]
mov byte [esi + ecx], 0
jne 0x40691a
mov esi, ecx
cmp byte [esi], 0
jne 0x40617b
xor eax, eax
mov dword [ebp - 0x1d4], eax
jmp 0x4061d9
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x406180
sub edi, ecx
lea esi, [edi + 1]
lea eax, [esi + 0x10]
push eax
call fcn.0044ecb6
mov dword [ebp - 0x1d4], eax
push esi
mov dword [eax], esi
mov eax, dword [ebp - 0x1d4]
mov esi, dword [ebp - 0x1c8]
push esi
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x1d4]
mov dword [eax + 8], 1
mov eax, dword [ebp - 0x1d4]
add eax, 0x10
push eax
call fcn.0044cb90
mov eax, dword [ebp - 0x1d4]
add esp, 0x10
mov edi, dword [ebp - 0x234]
test eax, eax
je 0x4068e5
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4068e5
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x1d4]
call fcn.004019f0
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x406216
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x1d4]
add eax, 0x10
push str._r_n_r_n
push eax
call fcn.0044c200
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x1d4]
test ecx, ecx
je 0x4068e5
sub ecx, eax
sub ecx, 0x10
mov dword [ebp - 0x218], ecx
cmp ecx, 0xffffffff
je 0x4068e5
mov dword [ebp - 0x1e8], 0
push ecx
push esi
lea ecx, [ebp - 0x1e8]
call fcn.00401a60
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1f8], 0
mov byte [ebp - 4], 7
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0
call fcn.004074f0
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x1e8]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x200]
call fcn.00405380
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1fc]
cmp eax, 0x194
je 0x406b79
add eax, 0xfffffed3
cmp eax, 0x62
ja 0x406414
push str.location
lea ecx, [ebp - 0x1c8]
call fcn.00401460
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x200]
call fcn.00405340
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 0xa
call fcn.004013f0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
push esi
call fcn.00414d7f
mov eax, dword [edi]
lea ecx, [ebp - 0x1cc]
add esp, 4
mov eax, dword [eax + 0xc]
push dword [ebp - 0x20c]
push ecx
mov ecx, edi
call eax
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 0x1ce], al
call fcn.004013f0
mov eax, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x1f4]
push eax
push dword [eax]
lea eax, [ebp - 0x214]
push eax
call fcn.00406f20
push 0x18
push dword [ebp - 0x1f4]
call fcn.00414d4e
mov ecx, dword [ebp - 0x1f8]
add esp, 8
or esi, 0xffffffff
test ecx, ecx
je 0x4063a6
add ecx, 8
mov eax, esi
lock xadd dword [ecx], eax
jne 0x40639c
push dword [ebp - 0x1f8]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x1f8], 0
mov eax, dword [ebp - 0x200]
test eax, eax
je 0x4063d2
add eax, 8
lock xadd dword [eax], esi
dec esi
jne 0x4063c8
push dword [ebp - 0x200]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x200], 0
lea ecx, [ebp - 0x1e8]
call fcn.004013f0
lea ecx, [ebp - 0x1d4]
call fcn.004013f0
lea ecx, [ebp - 0x1c4]
call fcn.004013f0
lea ecx, [ebp - 0x1ec]
call fcn.004013f0
lea ecx, [ebp - 0x1e4]
call fcn.004013f0
mov al, byte [ebp - 0x1ce]
jmp 0x406ad4
push 0x1f
call fcn.0044ecb6
mov esi, eax
add esp, 4
mov dword [ebp - 0x1d8], esi
mov dword [esi], 0xf
mov dword [esi + 4], 0xe
mov dword [esi + 8], 1
movq xmm0, qword [str.Content_Length]
movq qword [esi + 0x10], xmm0
mov eax, dword [0x4778ec]
mov dword [esi + 0x18], eax
mov ax, word [0x4778f0]
mov word [esi + 0x1c], ax
mov al, byte [0x4778f2]
mov byte [esi + 0x1e], al
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.00406c80
mov eax, dword [eax]
cmp eax, dword [ebp - 0x1f4]
je 0x40649f
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1cc], eax
test eax, eax
je 0x4064a7
add eax, 8
lock inc dword [eax]
mov eax, dword [ebp - 0x1cc]
jmp 0x4064a7
xor eax, eax
mov dword [ebp - 0x1cc], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1cc]
test eax, eax
je 0x4064dd
mov eax, dword [eax + 4]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x1cc]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x4064da
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x1cc]
lea ecx, [eax + 0x10]
call fcn.00402fb0
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1cc]
test eax, eax
je 0x406516
lea ecx, [eax + 8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x40650c
push dword [ebp - 0x1cc]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x1cc], 0
mov byte [ebp - 4], 9
lea ecx, [esi + 8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x40652f
push esi
call fcn.0044ec66
add esp, 4
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x406541
mov edx, dword [ebp - 0x1d8]
mov dword [eax], edx
lea ecx, [ebp - 0x205]
call fcn.00403d60
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [ecx + 0x2b]
cmp edx, eax
jae 0x40658f
lea eax, [edx + edx*2]
shr eax, 1
add eax, 0x2b
mov dword [ebp - 0x204], eax
cmp edx, eax
jae 0x40658f
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x204]
mov dword [esi], eax
mov eax, dword [esi + 8]
push 0x2b
add eax, ecx
push 0x477750
push eax
call fcn.0044cb90
mov ecx, dword [esi + 4]
add esp, 0xc
mov edx, dword [esi]
add ecx, 0x2b
mov dword [esi + 4], ecx
lea eax, [ecx + 0x10]
cmp edx, eax
jae 0x4065e2
lea eax, [edx + edx*2]
shr eax, 1
add eax, 0x10
mov dword [ebp - 0x204], eax
cmp edx, eax
jae 0x4065e2
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x204]
mov dword [esi], eax
mov eax, dword [esi + 8]
movups xmm0, xmmword [0x47779c]
push dword [ebp - 0x1d8]
movups xmmword [eax + ecx], xmm0
add dword [esi + 4], 0x10
mov ecx, esi
call fcn.00403a60
mov esi, eax
mov edx, dword [esi + 4]
mov ecx, dword [esi]
lea eax, [edx + 0xb]
cmp ecx, eax
jae 0x40663b
lea eax, [ecx + ecx*2]
shr eax, 1
add eax, 0xb
mov dword [ebp - 0x204], eax
cmp ecx, eax
jae 0x40663b
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov edx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x204]
mov dword [esi], eax
mov ecx, dword [esi + 8]
movq xmm0, qword [str.__font__br_]
movq qword [ecx + edx], xmm0
mov ax, word [0x477798]
mov word [ecx + edx + 8], ax
mov al, byte [0x47779a]
mov byte [ecx + edx + 0xa], al
add dword [esi + 4], 0xb
call fcn.00403dc0
mov ecx, dword [ebp - 0x1d8]
test ecx, ecx
js 0x406b94
mov esi, dword [ebp - 0x240]
mov eax, dword [ebp - 0x218]
sub esi, eax
sub esi, 4
test esi, esi
jle 0x4066fb
push dword [ebp - 0x1e0]
mov edx, dword [edi]
push ecx
mov ecx, dword [ebp - 0x1c8]
add ecx, 4
add eax, ecx
mov ecx, edi
cmp dword [edi + 4], 0
push esi
push eax
jne 0x4066ae
call dword [edx + 0x1c]
jmp 0x4066b1
call dword [edx + 0x20]
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [edi + 0x20]
add eax, esi
mov dword [ebp - 0x1e0], eax
test ecx, ecx
je 0x4067e4
movd xmm0, eax
sub esp, 0x10
mov eax, dword [ecx]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movd xmm0, dword [ebp - 0x1d8]
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
push 0
push dword [edi + 0x1c]
call dword [eax]
mov ecx, dword [ebp - 0x1d8]
mov eax, dword [ebp - 0x1e0]
cmp eax, ecx
jl 0x4067ef
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x40673b
movd xmm0, eax
sub esp, 0x10
mov eax, dword [ecx]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movd xmm0, dword [ebp - 0x1d8]
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
push 2
push dword [edi + 0x1c]
call dword [eax]
mov eax, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x1f4]
push eax
mov byte [ebp - 0x1cd], 1
push dword [eax]
lea eax, [ebp - 0x248]
push eax
call fcn.00406f20
push 0x18
push dword [ebp - 0x1f4]
call fcn.00414d4e
mov ecx, dword [ebp - 0x1f8]
add esp, 8
test ecx, ecx
je 0x40679b
add ecx, 8
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x406791
push dword [ebp - 0x1f8]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x1f8], 0
mov ecx, dword [ebp - 0x200]
test ecx, ecx
je 0x4067c9
add ecx, 8
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x4067bf
push dword [ebp - 0x200]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x200], 0
lea ecx, [ebp - 0x1e8]
call fcn.004013f0
lea ecx, [ebp - 0x1d4]
call fcn.004013f0
jmp 0x4069e9
mov ecx, dword [ebp - 0x1d8]
jmp 0x406701
mov eax, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x1f4]
push eax
mov byte [ebp - 0x1ce], 1
push dword [eax]
lea eax, [ebp - 0x24c]
push eax
call fcn.00406f20
push 0x18
push dword [ebp - 0x1f4]
call fcn.00414d4e
mov ecx, dword [ebp - 0x1f8]
add esp, 8
or esi, 0xffffffff
test ecx, ecx
je 0x406851
add ecx, 8
mov eax, esi
lock xadd dword [ecx], eax
jne 0x406847
push dword [ebp - 0x1f8]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x1f8], 0
mov ecx, dword [ebp - 0x200]
test ecx, ecx
je 0x40687e
add ecx, 8
mov eax, esi
lock xadd dword [ecx], eax
jne 0x406874
push dword [ebp - 0x200]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x200], 0
mov eax, dword [ebp - 0x1e8]
test eax, eax
je 0x4068ab
lea ecx, [eax + 8]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x4068a1
push dword [ebp - 0x1e8]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x1e8], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1d4]
test eax, eax
je 0x4060f7
lea ecx, [eax + 8]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x4068d6
push dword [ebp - 0x1d4]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x1d4], 0
jmp 0x4060f7
mov byte [ebp - 4], 3
test eax, eax
je 0x4060fd
lea ecx, [eax + 8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x40690b
push dword [ebp - 0x1d4]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x1d4], 0
jmp 0x4060fd
cmp dword [edi + 4], 0
push dword [ebp - 0x1e0]
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edi]
push edx
push esi
push ecx
mov ecx, edi
jne 0x406938
call dword [eax + 0x1c]
jmp 0x40693b
call dword [eax + 0x20]
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [edi + 0x20]
add eax, esi
mov dword [ebp - 0x1e0], eax
movd xmm1, eax
cvtdq2pd xmm1, xmm1
test ecx, ecx
je 0x4069a3
movd xmm0, dword [ebp - 0x1d8]
sub esp, 0x10
mov eax, dword [ecx]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push 0
push dword [edi + 0x1c]
movsd qword [ebp - 0x244], xmm1
movsd qword [ebp - 0x21c], xmm0
call dword [eax]
movsd xmm0, qword [ebp - 0x21c]
movsd xmm1, qword [ebp - 0x244]
mov eax, dword [ebp - 0x1d8]
jmp 0x4069b1
mov eax, dword [ebp - 0x1d8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cmp dword [ebp - 0x1e0], eax
jl 0x4060f7
mov ecx, dword [edi + 0x20]
mov al, 1
mov byte [ebp - 0x1cd], al
mov byte [ebp - 0x1d9], al
test ecx, ecx
je 0x4069e9
mov eax, dword [ecx]
sub esp, 0x10
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push 2
push dword [edi + 0x1c]
call dword [eax]
mov eax, dword [ebp - 0x1c4]
or esi, 0xffffffff
test eax, eax
je 0x406a19
lea ecx, [eax + 8]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x406a0f
push dword [ebp - 0x1c4]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x1c4], 0
mov eax, dword [ebp - 0x1ec]
test eax, eax
je 0x406a37
lea edx, [eax + 8]
mov ecx, esi
lock xadd dword [edx], ecx
jne 0x406a37
push eax
call fcn.0044ec66
add esp, 4
mov eax, dword [ebp - 0x1e4]
test eax, eax
je 0x406a63
add eax, 8
lock xadd dword [eax], esi
dec esi
jne 0x406a59
push dword [ebp - 0x1e4]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x1e4], 0
mov eax, dword [ebp - 0x1c8]
jmp 0x406ac1
test eax, eax
je 0x406ace
push eax
call fcn.00414d7f
add esp, 4
mov al, byte [ebp - 0x1cd]
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.00414803
mov esp, ebp
pop ebp
ret 8
push 0x47b71c
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 1
push eax
call fcn.0044c78e
push 0x47b71c
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 3
push eax
call fcn.0044c78e
push 0x47b71c
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0xd
push eax
call fcn.0044c78e
push 0x47b71c
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0xc
push eax
call fcn.0044c78e
push 0x47b71c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0xc
push eax
call fcn.0044c78e
push 0x47b71c
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 5
push eax
call fcn.0044c78e
push 0x47b71c
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0xe
push eax
call fcn.0044c78e
int3