Function at 0x40b380
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x47c9be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
mov eax, dword [0x4a8ae4]
xor eax, esp
push ebx
push ebp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x424]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
xor ebx, ebx
mov dword [esp + 0x424], ebx
call fcn.00476002
mov ebp, dword [eax + 4]
cmp dword [ebp + 0xdd4], ebx
je 0x40b3e4
push 0x13e
mov ecx, ebp
call fcn.0040e720
jmp 0x40bab8
push 0xffffffffffffffff
lea ecx, [ebp + 0xd90]
push ebx
mov dword [ebp + 0xd4], ebx
call fcn.0045bee2
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x424], 1
mov dword [esp + 0x28], ebx
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x1f4], 7
mov dword [esp + 0x1f0], ebx
mov word [esp + 0x1e0], bx
push ebx
lea ecx, [esp + 0x100]
mov byte [esp + 0x428], 3
call fcn.00423570
mov byte [esp + 0x424], 4
call fcn.00476002
mov ecx, dword [eax + 4]
call fcn.00461e2e
mov eax, dword [edi + 0x18]
xor esi, esi
cmp eax, ebx
mov byte [esp + 0x424], 5
jle 0x40b4b5
nop
cmp esi, ebx
jl 0x40bcd0
cmp esi, dword [edi + 0x18]
jge 0x40bcd0
mov eax, dword [edi + 0x14]
push ecx
lea eax, [eax + esi*4]
mov eax, dword [eax]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00406210
mov ecx, edi
call fcn.0040b0f0
mov eax, dword [edi + 0x18]
inc esi
cmp esi, eax
jl 0x40b480
mov ecx, edi
call fcn.00408c80
test al, al
jne 0x40b527
call fcn.00476002
mov ecx, dword [eax + 4]
call fcn.00461e58
mov byte [esp + 0x424], 4
call fcn.00476002
mov ecx, dword [eax + 4]
call fcn.00461e43
lea ecx, [esp + 0xfc]
mov byte [esp + 0x424], 3
call fcn.004235f0
cmp dword [esp + 0x1f4], 8
jb 0x40b510
mov ecx, dword [esp + 0x1e0]
push ecx
call fcn.004620d3
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1f4], 7
add eax, 0xfffffff0
jmp 0x40ba64
call fcn.00476002
mov ecx, dword [eax + 4]
call fcn.00461e58
mov eax, dword [edi + 0x18]
cmp eax, ebx
mov dword [esp + 0x1c], ebx
jle 0x40b6bd
lea eax, [edi + 0x10]
mov dword [esp + 0x2c], eax
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x40bcd0
mov ecx, dword [esp + 0x2c]
cmp eax, dword [ecx + 8]
jge 0x40bcd0
mov ecx, dword [ecx + 4]
lea eax, [ecx + eax*4]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004082f0
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
test eax, eax
jg 0x40b58f
or eax, 0xffffffff
jmp 0x40b5a7
push 0x5c
push esi
call fcn.0044a7a1
add esp, 8
test eax, eax
jne 0x40b5a3
or eax, 0xffffffff
jmp 0x40b5a7
sub eax, esi
sar eax, 1
inc eax
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x20]
call fcn.00405220
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x424], 6
je 0x40b617
mov edx, dword [esi + 0xc]
test edx, edx
lea ebx, [esi + 0xc]
jl 0x40b609
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40b609
push eax
call fcn.00401570
mov dword [esp + 0x38], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40b5fc
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0x10
mov dword [esp + 0x18], eax
jmp 0x40b617
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00403be0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x424], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b63d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x430]
mov esi, dword [esp + 0x18]
push ebx
push esi
call fcn.0044a53d
push 0
push 0
push 0
lea eax, [esp + 0x20c]
push eax
push esi
call fcn.0044a8e2
push 0
push 0
push 0
lea ecx, [esp + 0x22c]
push ecx
push ebx
call fcn.0044a8e2
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x22c]
push eax
call fcn.0044a53d
add esp, 0x38
test eax, eax
jne 0x40b69b
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x40b550
mov eax, dword [esp + 0x28]
xor ebx, ebx
test eax, eax
jne 0x40bea2
cmp dword [ebp + 0xdc8], ebx
mov esi, dword [esp + 0x14]
jne 0x40b6f7
push ebx
lea ecx, [esp + 0x3c]
call fcn.00420870
lea ecx, [esp + 0x38]
mov byte [esp + 0x424], 7
call fcn.0045d4bd
lea ecx, [esp + 0x38]
mov byte [esp + 0x424], 5
call fcn.00420890
jmp 0x40b701
mov dword [ebp + 0xd8c], 1
cmp dword [ebp + 0xd8c], ebx
jne 0x40b7ae
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, edi
call fcn.00409960
call fcn.0046249e
cmp eax, ebx
je 0x40b72b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40b72d
xor eax, eax
mov ecx, eax
call fcn.00421930
mov byte [esp + 0x424], 4
call fcn.00476002
mov ecx, dword [eax + 4]
call fcn.00461e43
lea ecx, [esp + 0xfc]
mov byte [esp + 0x424], 3
call fcn.004235f0
cmp dword [esp + 0x1f4], 8
jb 0x40b777
mov eax, dword [esp + 0x1e0]
push eax
call fcn.004620d3
add esp, 4
lea eax, [esi - 0x10]
mov dword [esp + 0x1f4], 7
mov dword [esp + 0x1f0], ebx
mov word [esp + 0x1e0], bx
mov byte [esp + 0x424], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40ba88
cmp dword [ebp + 0xd8], 1
jne 0x40b8d6
push 0xd8
call fcn.00462133
cmp eax, ebx
je 0x40b7dc
push 0xd8
push eax
lea ecx, [esp + 0x1c]
call fcn.0042b1e0
mov esi, dword [esp + 0x14]
mov edi, 7
push esi
mov dword [esp + 0x1dc], edi
mov dword [esp + 0x1d8], ebx
mov word [esp + 0x1c8], bx
call fcn.00449da9
add esp, 4
push eax
push esi
lea ecx, [esp + 0x1c8]
call fcn.00402410
mov eax, dword [esp + 0x1d8]
mov ebp, 8
cmp eax, ebp
mov eax, dword [esp + 0x1c4]
mov byte [esp + 0x424], 8
jae 0x40b834
lea eax, [esp + 0x1c4]
push 1
push 1
push eax
call fcn.0046f4c9
call fcn.0046249e
cmp eax, ebx
je 0x40b850
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40b852
xor eax, eax
mov ecx, eax
call fcn.00421930
cmp dword [esp + 0x1d8], ebp
jb 0x40b872
mov eax, dword [esp + 0x1c4]
push eax
call fcn.004620d3
add esp, 4
mov dword [esp + 0x1d8], edi
mov dword [esp + 0x1d4], ebx
mov word [esp + 0x1c4], bx
mov byte [esp + 0x424], 4
call fcn.00476002
mov ecx, dword [eax + 4]
call fcn.00461e43
lea ecx, [esp + 0xfc]
mov byte [esp + 0x424], 3
call fcn.004235f0
cmp dword [esp + 0x1f4], ebp
jb 0x40b8ca
mov ecx, dword [esp + 0x1e0]
push ecx
call fcn.004620d3
add esp, 4
mov dword [esp + 0x1f4], edi
jmp 0x40ba61
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebx
push ebx
push 1
push ebx
mov dword [esp + 0x40], ebx
mov dword [ebp + 0xd70], ebx
mov dword [ebp + 0xd8], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea edx, [esp + 0x30]
push edx
push ebx
add edi, 0x10
push edi
push 0x409000
push ebx
push ebx
mov dword [ebp + 0xd4], eax
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
jne 0x40baeb
push 0xd1
call fcn.00462133
cmp eax, ebx
je 0x40b94b
push 0xd1
push eax
lea ecx, [esp + 0x1c]
call fcn.0042b1e0
mov esi, dword [esp + 0x14]
push esi
call fcn.00449da9
add esp, 4
push eax
push esi
lea ecx, [esp + 0x1e4]
call fcn.00402410
push 0xd9
call fcn.00462133
cmp eax, ebx
je 0x40b987
push 0xd9
push eax
lea ecx, [esp + 0x1c]
call fcn.0042b1e0
mov esi, dword [esp + 0x14]
mov ebp, 7
push esi
mov dword [esp + 0x1dc], ebp
mov dword [esp + 0x1d8], ebx
mov word [esp + 0x1c8], bx
call fcn.00449da9
add esp, 4
push eax
push esi
lea ecx, [esp + 0x1c8]
call fcn.00402410
mov eax, dword [esp + 0x1d8]
mov edi, 8
cmp eax, edi
mov eax, dword [esp + 0x1c4]
mov byte [esp + 0x424], 9
jae 0x40b9df
lea eax, [esp + 0x1c4]
push 1
push 1
push eax
call fcn.0046f4c9
cmp dword [esp + 0x1d8], edi
jb 0x40ba02
mov eax, dword [esp + 0x1c4]
push eax
call fcn.004620d3
add esp, 4
mov dword [esp + 0x1d8], ebp
mov dword [esp + 0x1d4], ebx
mov word [esp + 0x1c4], bx
mov byte [esp + 0x424], 4
call fcn.00476002
mov ecx, dword [eax + 4]
call fcn.00461e43
lea ecx, [esp + 0xfc]
mov byte [esp + 0x424], 3
call fcn.004235f0
cmp dword [esp + 0x1f4], edi
jb 0x40ba5a
mov ecx, dword [esp + 0x1e0]
push ecx
call fcn.004620d3
add esp, 4
mov dword [esp + 0x1f4], ebp
lea eax, [esi - 0x10]
mov dword [esp + 0x1f0], ebx
mov word [esp + 0x1e0], bx
mov byte [esp + 0x424], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ba92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x424], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bab8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x430]
add eax, 0xfffffff0
mov dword [esp + 0x424], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bae4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40bfa9
mov eax, dword [ebp + 0xd4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, ebp
call fcn.0040dca0
mov edi, dword [esp + 0x2c]
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.0045bee2
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.0045bee2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call fcn.004620d3
push 0x489aa4
mov dword [ebp + 0xd8], ebx
mov byte [ebp + 0x15a], 0
lea edi, [ebp + 0x154]
call fcn.00449da9
add esp, 8
push eax
push 0x489aa4
mov ecx, edi
call fcn.00403be0
mov ecx, dword [ebp + 0xd4]
push ecx
call esi
xor eax, eax
mov word [esp + 0x210], bx
mov ecx, 0x81
lea edi, [esp + 0x212]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xd98]
cmp eax, ebx
mov dword [esp + 0x24], eax
jle 0x40be2e
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x24]
cmp edi, 1
mov byte [esp + 0x424], 0xa
jne 0x40bcc2
cmp dword [ebp + 0xd98], ebx
jg 0x40bbbf
call fcn.0045a790
mov eax, dword [ebp + 0xd94]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00401570
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x34], esi
push 0xda
mov byte [esp + 0x428], 0xb
call fcn.00462133
cmp eax, ebx
je 0x40bbff
push 0xda
push eax
lea ecx, [esp + 0x1c]
call fcn.0042b1e0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x1c4]
call fcn.004027f0
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
mov byte [esp + 0x424], 0xc
jae 0x40bc30
lea eax, [esp + 0x1c4]
lea ecx, [esp + 0x34]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00408440
push 0x48a07c
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x43c], 0xd
call fcn.00405530
add esp, 0x18
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x428], 0xe
call fcn.00403cc0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x424], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x424], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bd6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40bd6a
jle 0x40bd98
cmp dword [ebp + 0xd98], ebx
jg 0x40bcd5
call fcn.0045a790
mov eax, dword [ebp + 0xd94]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00401570
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x20], esi
push 0xdb
mov byte [esp + 0x428], 0xf
call fcn.00462133
cmp eax, ebx
je 0x40bd15
push 0xdb
push eax
lea ecx, [esp + 0x1c]
call fcn.0042b1e0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x1c4]
call fcn.004027f0
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
mov byte [esp + 0x424], 0x10
jae 0x40bd46
lea eax, [esp + 0x1c4]
push edi
push eax
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x210]
push edx
lea ecx, [esp + 0x20]
call fcn.00405a70
lea ecx, [esp + 0x1c0]
call fcn.00401a60
lea eax, [esi - 0x10]
mov byte [esp + 0x424], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bd98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebx
lea ecx, [esp + 0x3c]
call fcn.00423570
mov esi, dword [esp + 0x1c]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push esi
mov byte [esp + 0x42c], 0x11
call fcn.00401570
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [edi], eax
call fcn.00423760
lea ecx, [esp + 0x38]
call fcn.0045d4bd
mov eax, dword [esp + 0x430]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push eax
call fcn.00401570
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [edi], eax
call fcn.0040e4f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x424], 0xa
call fcn.004235f0
mov byte [esp + 0x424], 5
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40be2e
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
cmp dword [esp + 0x24], ebx
jne 0x40bea2
push ebx
lea ecx, [esp + 0x3c]
call fcn.00423570
push 0xdc
mov byte [esp + 0x428], 0x12
call fcn.00462133
cmp eax, ebx
je 0x40be63
push 0xdc
push eax
lea ecx, [esp + 0x1c]
call fcn.0042b1e0
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00401570
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esi], eax
call fcn.00423760
lea ecx, [esp + 0x38]
call fcn.0045d4bd
lea ecx, [esp + 0x38]
mov byte [esp + 0x424], 5
call fcn.004235f0
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ebx
mov dword [ebp + 0xd70], ebx
call fcn.0045bee2
call fcn.0046249e
cmp eax, ebx
je 0x40bec6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40bec8
xor eax, eax
mov ecx, eax
call fcn.00421930
mov byte [esp + 0x424], 4
call fcn.00476002
mov ecx, dword [eax + 4]
call fcn.00461e43
lea ecx, [esp + 0xfc]
mov byte [esp + 0x424], 3
call fcn.004235f0
cmp dword [esp + 0x1f4], 8
jb 0x40bf12
mov eax, dword [esp + 0x1e0]
push eax
call fcn.004620d3
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x1f4], 7
mov dword [esp + 0x1f0], ebx
mov word [esp + 0x1e0], bx
mov byte [esp + 0x424], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x424], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x430]
add eax, 0xfffffff0
mov dword [esp + 0x424], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bfa4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x410]
pop ebp
pop ebx
xor ecx, esp
call fcn.0044a318
add esp, 0x418
ret 8