Function at 0x406220
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x692556
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x400
mov eax, dword [0x75d580]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x404], esi
push ecx
push str.cb_xy
lea ecx, [esi + 4]
mov dword [ebp - 0x408], 0
call fcn.00408870
push ecx
push str.cb_link
lea ecx, [esi + 4]
mov edi, eax
call fcn.00408870
push ecx
push str.cb_autorun
lea ecx, [esi + 4]
mov dword [ebp - 0x3fc], eax
call fcn.00408870
mov dword [ebp - 0x400], eax
test edi, edi
je 0x406421
cmp dword [ebp - 0x3fc], 0
je 0x406421
test eax, eax
je 0x406421
cmp dword [esi + 0x3b8], 0
je 0x406421
cmp dword [esi + 0x3b4], 0
je 0x406421
mov ecx, edi
call fcn.004435cc
test eax, eax
jne 0x40643f
push ecx
mov ecx, dword [0x75d004]
mov eax, esp
mov dword [ebp - 0x404], esp
mov dword [eax], ecx
push ecx
mov edi, esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x410], esp
push 0x12
mov dword [edi], ecx
call fcn.004333f5
add esp, 4
test eax, eax
je 0x406348
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], 2
mov dword [eax + 8], 2
mov word [eax + 0x10], cx
lea ecx, [eax + 0xc]
mov dword [edi], ecx
mov eax, dword [0x7354a8]
mov dword [ecx], eax
push 0
push ecx
mov byte [ebp - 4], 1
mov edi, esp
mov eax, dword [0x75d004]
mov dword [ebp - 0x400], esp
push 0x12
mov dword [edi], eax
call fcn.004333f5
add esp, 4
test eax, eax
je 0x406392
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], 2
mov dword [eax + 8], 2
mov word [eax + 0x10], cx
lea ecx, [eax + 0xc]
mov dword [edi], ecx
mov eax, dword [0x7354b0]
mov dword [ecx], eax
push ecx
mov edi, esp
mov byte [ebp - 4], 2
mov eax, dword [0x75d004]
push 0x30
mov dword [edi], eax
call fcn.004333f5
add esp, 4
test eax, eax
je 0x4063ec
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], 0x11
mov dword [eax + 8], 0x11
mov word [eax + 0x2e], cx
lea ecx, [eax + 0xc]
mov dword [edi], ecx
movups xmm0, xmmword [0x7355b4]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x7355c4]
movups xmmword [ecx + 0x10], xmm0
mov ax, word [0x7355d4]
mov word [ecx + 0x20], ax
lea ecx, [ebp - 0x3f8]
mov dword [ebp - 4], 0xffffffff
call fcn.00409e60
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x3f8]
push dword [esi + 0x248]
call fcn.004465b6
lea ecx, [ebp - 0x3f8]
call fcn.0040a060
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048a267
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [esi + 0x3b8]
lea edx, [ebp - 0x410]
push 0
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
call eax
mov dword [ebp - 4], 4
xorps xmm0, xmm0
mov edx, dword [eax]
mov ecx, edx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406480
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00402060
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x410]
add ecx, 0xfffffff4
cmp ecx, dword [section..data]
je 0x4064c3
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4064c3
push ecx
call fcn.004333f0
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x4065dc
push ecx
mov ecx, dword [0x75d004]
mov eax, esp
mov dword [ebp - 0x404], esp
mov dword [eax], ecx
push ecx
mov edi, esp
mov byte [ebp - 4], 8
mov dword [ebp - 0x400], esp
push 0x12
mov dword [edi], ecx
call fcn.004333f5
add esp, 4
test eax, eax
je 0x406521
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], 2
mov dword [eax + 8], 2
mov word [eax + 0x10], cx
lea ecx, [eax + 0xc]
mov dword [edi], ecx
mov eax, dword [0x7354a8]
mov dword [ecx], eax
push 0
push ecx
mov byte [ebp - 4], 9
mov edi, esp
mov eax, dword [0x75d004]
mov dword [ebp - 0x3fc], esp
push 0x12
mov dword [edi], eax
call fcn.004333f5
add esp, 4
test eax, eax
je 0x40656b
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], 2
mov dword [eax + 8], 2
mov word [eax + 0x10], cx
lea ecx, [eax + 0xc]
mov dword [edi], ecx
mov eax, dword [0x7354b0]
mov dword [ecx], eax
push ecx
mov edi, esp
mov byte [ebp - 4], 0xa
mov eax, dword [0x75d004]
push 0x1c
mov dword [edi], eax
call fcn.004333f5
add esp, 4
test eax, eax
je 0x4065c4
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], 7
mov dword [eax + 8], 7
mov word [eax + 0x1a], cx
lea ecx, [eax + 0xc]
mov dword [edi], ecx
movq xmm0, qword [0x7355d8]
movq qword [ecx], xmm0
mov eax, dword [0x7355e0]
mov dword [ecx + 8], eax
mov ax, word [0x7355e4]
mov word [ecx + 0xc], ax
lea ecx, [ebp - 0x3f8]
mov byte [ebp - 4], 6
call fcn.00409e60
mov byte [ebp - 4], 0xb
jmp 0x4069ec
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x48]
call fcn.0040af80
cmp dword [ebp - 0x38], 0
mov edi, 0x5c
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x408], 1
jbe 0x406623
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
cmp edx, 7
cmova ecx, dword [ebp - 0x2c]
cmp di, word [ecx + eax*2 - 2]
je 0x406623
push edi
lea ecx, [ebp - 0x48]
call fcn.00410980
mov edx, dword [ebp - 0x18]
cmp edx, 7
jbe 0x40665a
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406650
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406cd1
push edx
push ecx
call fcn.0048a4f6
add esp, 8
movups xmm1, xmmword [ebp - 0x48]
lea ecx, [ebp - 0x2c]
movq xmm0, qword [ebp - 0x38]
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], 7
movd eax, xmm1
movups xmmword [ebp - 0x2c], xmm1
cmova ecx, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4068dc
push 0x20
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x408], eax
call fcn.0048a275
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x40c], eax
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
mov ecx, dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4066d8
mov eax, edx
cmp word [eax], 0x3a
je 0x406814
add eax, 2
sub ecx, 1
jne 0x4066c6
push ecx
mov ecx, dword [0x75d004]
mov eax, esp
mov dword [ebp - 0x404], esp
mov dword [eax], ecx
push ecx
mov edi, esp
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x410], esp
push 0x12
mov dword [edi], ecx
call fcn.004333f5
add esp, 4
test eax, eax
je 0x40672c
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], 2
mov dword [eax + 8], 2
mov word [eax + 0x10], cx
lea ecx, [eax + 0xc]
mov dword [edi], ecx
mov eax, dword [0x7354a8]
mov dword [ecx], eax
push 0
push ecx
mov byte [ebp - 4], 0xf
mov edi, esp
mov eax, dword [0x75d004]
mov dword [ebp - 0x400], esp
push 0x12
mov dword [edi], eax
call fcn.004333f5
add esp, 4
test eax, eax
je 0x406776
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], 2
mov dword [eax + 8], 2
mov word [eax + 0x10], cx
lea ecx, [eax + 0xc]
mov dword [edi], ecx
mov eax, dword [0x7354b0]
mov dword [ecx], eax
push ecx
mov edi, esp
mov byte [ebp - 4], 0x10
mov eax, dword [0x75d004]
push 0x20
mov dword [edi], eax
call fcn.004333f5
add esp, 4
test eax, eax
je 0x4067c5
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], 9
mov dword [eax + 8], 9
mov word [eax + 0x1e], cx
lea ecx, [eax + 0xc]
mov dword [edi], ecx
movups xmm0, xmmword [0x7355e8]
movups xmmword [ecx], xmm0
mov ax, word [0x7355f8]
mov word [ecx + 0x10], ax
lea ecx, [ebp - 0x3f8]
mov byte [ebp - 4], 0xd
call fcn.00409e60
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x3f8]
push dword [esi + 0x248]
call fcn.004465b6
lea ecx, [ebp - 0x3f8]
call fcn.0040a060
mov edx, dword [ebp - 0x40c]
call fcn.00408b30
push 0x20
push dword [ebp - 0x40c]
call fcn.0048a4f6
add esp, 8
jmp 0x406c84
test eax, eax
je 0x4066d8
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x4066d8
lea edx, [ebp - 0x40c]
lea ecx, [ebp - 0x2c]
call fcn.0040bb00
test al, al
je 0x4066d8
mov edx, dword [ebp - 0x40c]
mov eax, edx
cmp eax, dword [edx]
je 0x4068c3
nop dword [eax + eax]
lea edi, [eax + 4]
mov eax, dword [edi]
lea ecx, [ebp - 0x48]
add eax, 8
push eax
call fcn.00407510
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x12
call fcn.0040a920
test al, al
je 0x406879
lea ecx, [ebp - 0x48]
call fcn.0040ab30
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x34]
cmp ecx, 7
jbe 0x4068b7
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4068ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406cd1
push ecx
push edx
call fcn.0048a4f6
add esp, 8
mov edx, dword [ebp - 0x40c]
mov eax, dword [edi]
cmp eax, dword [edx]
jne 0x406850
mov byte [ebp - 4], 6
call fcn.00408b30
push 0x20
push dword [ebp - 0x40c]
call fcn.0048a4f6
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.0040b890
test al, al
jne 0x406a0d
push ecx
mov ecx, dword [0x75d004]
mov eax, esp
mov dword [ebp - 0x404], esp
mov dword [eax], ecx
push ecx
mov edi, esp
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x400], esp
push 0x12
mov dword [edi], ecx
call fcn.004333f5
add esp, 4
test eax, eax
je 0x406940
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], 2
mov dword [eax + 8], 2
mov word [eax + 0x10], cx
lea ecx, [eax + 0xc]
mov dword [edi], ecx
mov eax, dword [0x7354a8]
mov dword [ecx], eax
push 0
push ecx
mov byte [ebp - 4], 0x14
mov edi, esp
mov eax, dword [0x75d004]
mov dword [ebp - 0x3fc], esp
push 0x12
mov dword [edi], eax
call fcn.004333f5
add esp, 4
test eax, eax
je 0x40698a
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], 2
mov dword [eax + 8], 2
mov word [eax + 0x10], cx
lea ecx, [eax + 0xc]
mov dword [edi], ecx
mov eax, dword [0x7354b0]
mov dword [ecx], eax
push ecx
mov edi, esp
mov byte [ebp - 4], 0x15
mov eax, dword [0x75d004]
push 0x1a
mov dword [edi], eax
call fcn.004333f5
add esp, 4
test eax, eax
je 0x4069d9
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], 6
mov dword [eax + 8], 6
mov word [eax + 0x18], cx
lea ecx, [eax + 0xc]
mov dword [edi], ecx
movq xmm0, qword [0x7355fc]
movq qword [ecx], xmm0
mov eax, dword [0x735604]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x3f8]
mov byte [ebp - 4], 6
call fcn.00409e60
mov byte [ebp - 4], 0x16
push dword [esi + 0x248]
lea ecx, [ebp - 0x3f8]
call fcn.004465b6
lea ecx, [ebp - 0x3f8]
call fcn.0040a060
jmp 0x406c84
mov ecx, dword [ebp - 0x3fc]
call fcn.004435cc
mov ecx, dword [ebp - 0x400]
mov edi, eax
call fcn.004435cc
push 0x30
mov esi, eax
call fcn.0048a275
mov ecx, eax
add esp, 4
mov dword [ebp - 0x400], ecx
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x2c]
mov dword [ecx], esi
xorps xmm0, xmm0
mov dword [ecx + 4], edi
lea esi, [ecx + 8]
mov dword [ebp - 0x3fc], esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [ebp - 0x18], 7
mov edi, dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x2c]
mov dword [ebp - 0x408], eax
cmp edi, 0x7ffffffe
ja 0x406cd6
cmp edi, 7
ja 0x406a96
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
jmp 0x406af1
mov eax, edi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x406aa9
mov eax, bind
jmp 0x406ab3
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x3fc], eax
lea eax, [ebp - 0x3fc]
push eax
push esi
call fcn.00402370
mov ecx, dword [ebp - 0x3fc]
mov dword [esi + 0x14], ecx
lea ecx, [edi*2 + 2]
push ecx
push dword [ebp - 0x408]
mov dword [esi], eax
push eax
mov dword [esi + 0x10], edi
call fcn.0053f540
mov ecx, dword [ebp - 0x400]
add esp, 0x14
mov esi, dword [ebp - 0x404]
mov dword [ecx + 0x20], 0x4059f0
mov dword [ecx + 0x24], 0
mov al, byte [ebp - 0x38]
mov byte [ecx + 0x28], al
mov al, byte [ebp - 0x37]
mov byte [ecx + 0x29], al
mov al, byte [ebp - 0x36]
mov byte [ecx + 0x2a], al
mov dword [ecx + 0x2c], esi
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x404], 0
mov dword [ebp - 0x408], 2
call fcn.00409000
mov edi, dword [ebp - 0x400]
mov dword [ebp - 0x404], 0
mov dword [ebp - 0x400], edi
lea ecx, [ebp - 0x404]
mov byte [ebp - 4], 0x18
call fcn.00409000
lea eax, [ebp - 0x34]
push eax
push 0
push edi
push 0x409110
push 0
push 0
call fcn.0054951a
mov edi, eax
add esp, 0x18
mov dword [ebp - 0x38], edi
test edi, edi
je 0x406cc3
mov byte [ebp - 4], 6
mov edx, dword [esi + 0x394]
mov ecx, dword [esi + 0x390]
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x390], edi
mov dword [esi + 0x394], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
test edx, edx
jne 0x406cdb
mov ecx, dword [esi + 0x3b4]
test ecx, ecx
je 0x406be7
push 1
call fcn.004376a1
push 0
mov ecx, esi
call fcn.004060b0
push ecx
push str.btn_close
lea ecx, [esi + 4]
call fcn.00408710
test eax, eax
je 0x406be7
push 1
push 0
mov ecx, eax
call fcn.0044230b
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x48]
call fcn.0040af80
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x408], 6
jbe 0x406c29
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov edx, 0x5c
cmova ecx, dword [ebp - 0x2c]
cmp dx, word [ecx + eax*2 - 2]
je 0x406c29
push edx
lea ecx, [ebp - 0x48]
call fcn.00410980
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x39c]
call fcn.00401e10
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x34]
cmp ecx, 7
jbe 0x406c72
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406c68
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ce0
push ecx
push edx
call fcn.0048a4f6
add esp, 8
push 6
push str.AK.exe
lea ecx, [esi + 0x39c]
call fcn.004021f0
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x406421
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406cb4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ce5
push ecx
push edx
call fcn.0048a4f6
add esp, 8
jmp 0x406421
push 6
mov dword [ebp - 0x34], 0
call fcn.00488b72
call fcn.00543627
call fcn.00401460
call fcn.005495ab
call fcn.00543627
call fcn.00543627
int3