Function at 0x416b90
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x64
push 0xffffffffffffffff
push 0x4532be
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp + 0x3c], edi
mov eax, dword [ebp + 0x74]
mov esi, dword [ebp + 0x70]
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x50], eax
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x4172ef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x34], eax
mov dword [ebp - 4], 1
or ebx, 0xffffffff
cmp dword [esi + 4], 0
jle 0x416c10
lea eax, [ebp + 0x34]
mov ecx, edi
push eax
call fcn.00416ad0
mov esi, eax
test esi, esi
jne 0x4172ad
mov esi, dword [ebp + 0x38]
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x4172ef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 4], eax
mov byte [ebp - 4], 3
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x4172ef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 5
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 0
mov byte [ebp - 4], 0xb
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
mov byte [ebp - 4], 0xc
lea eax, [ebp + 0x24]
mov dword [ebp + 0x48], eax
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x4172ef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x24], eax
mov byte [ebp - 4], 0xe
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0x46552c
mov dword [ebp + 0x30], 0
mov byte [ebp - 4], 0x10
xor ebx, ebx
cmp dword [esi + 4], ebx
jle 0x416fcb
push 0x260
call fcn.004388b1
mov esi, eax
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 0x11
push 0x260
push 0
push esi
call fcn.0043a300
add esp, 0x10
mov dword [esi], 0xffffffff
lea ecx, [esi + 0x10]
mov byte [esi + 8], 1
call fcn.0042a9d0
mov byte [ebp - 4], 0x12
lea edi, [esi + 0x258]
mov dword [esi + 0x250], 0
mov dword [esi + 0x254], 0
mov dword [ebp - 0x34], edi
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x4172ef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp + 0x58]
mov edi, dword [ebp + 0x5c]
cmp ecx, edi
jne 0x416d98
mov edx, dword [ebp + 0x54]
lea eax, [ebp + 0x10]
cmp eax, edx
jb 0x416d5e
lea eax, [edx + edi*4]
lea edx, [ebp + 0x10]
cmp edx, eax
mov edx, dword [ebp + 0x54]
jb 0x4172ef
test edi, edi
jne 0x416d69
mov edi, 1
jmp 0x416d78
lea edi, [ecx + ecx]
test edi, edi
js 0x416dbc
cmp edi, 0x1fffffff
ja 0x416dbc
push 4
push edi
push edx
call fcn.00441571
add esp, 0xc
test eax, eax
je 0x416d93
mov dword [ebp + 0x54], eax
mov ecx, dword [ebp + 0x58]
mov dword [ebp + 0x5c], edi
jmp 0x416d9b
mov ecx, dword [ebp + 0x58]
jmp 0x416db9
mov eax, dword [ebp + 0x54]
lea eax, [eax + ecx*4]
mov dword [ebp], ecx
mov dword [ebp + 0x44], eax
mov byte [ebp - 4], 0x15
test eax, eax
je 0x416dae
mov dword [eax], esi
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp + 0x58]
inc ecx
mov dword [ebp + 0x58], ecx
mov edx, dword [ebp + 0x54]
test ebx, ebx
js 0x4172e3
cmp ebx, ecx
jge 0x4172e3
mov esi, dword [edx + ebx*4]
lea edi, [ebx*4]
lea eax, [ebp + 0x34]
push eax
mov byte [esi + 8], 1
call fcn.0042ab70
test al, al
je 0x41705e
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x4172ef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp + 0x38]
cmp ebx, dword [ecx + 4]
jge 0x4172e3
mov eax, dword [ecx]
mov eax, dword [eax + edi]
mov dword [esi], eax
cmp ebx, dword [ecx + 4]
jge 0x4172e3
mov eax, dword [ecx]
mov ecx, dword [eax + edi]
test ecx, ecx
js 0x4172e3
mov edx, dword [ebp + 0x3c]
cmp ecx, dword [edx + 0x7c]
jge 0x4172e3
mov eax, dword [edx + 0x78]
mov edi, ecx
shl ecx, 5
shl edi, 5
add edi, eax
mov eax, dword [ecx + eax + 8]
shr eax, 1
and eax, 0xffffff01
mov dword [ebp + 0x48], eax
mov eax, dword [edi]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
mov dword [ebp + 0x14], eax
add eax, 0xfffffffc
cmp eax, 6
ja case.0x416e73.6
movzx eax, byte [eax + 0x417304]
jmp dword [eax*4 + 0x4172fc]
mov eax, dword [edx + 0x70]
lea ecx, [edx + 0x70]
cmp dword [eax - 0xc], 0
jne 0x416e89
lea ecx, [edx + 0x68]
lea eax, [edi + 0x18]
mov edx, ecx
push eax
lea ecx, [ebp + 0x4c]
call fcn.00417a20
add esp, 4
mov byte [ebp - 4], 0x18
mov eax, dword [ebp + 0x14]
cmp eax, 9
je 0x416eab
cmp eax, 0xa
jne 0x416eba
lea eax, [ebp + 0x4c]
push eax
lea ecx, [esi + 0x258]
call fcn.00407c70
lea edx, [ebp + 0x4c]
lea ecx, [ebp + 0xc]
call fcn.004109c0
mov byte [ebp - 4], 0x19
lea ecx, [ebp + 0x60]
push eax
call fcn.00407c70
mov byte [ebp - 4], 0x18
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416ef1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x3c]
xor edx, edx
cmp byte [ebp + 0x48], dl
cmovne edx, ecx
lea eax, [ecx + 0xfc]
add ecx, 0x60
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [edx + 4]
neg edx
sbb edx, edx
and edx, eax
push edx
push 0
push dword [edi + 0xc]
push 0
push dword [edi + 0x10]
push ecx
lea ecx, [esi + 0x10]
call fcn.0042ac10
test eax, eax
jne 0x41700d
mov byte [ebp - 4], 0x17
or eax, 0xffffffff
mov edx, dword [ebp + 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416f4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0x3c]
lea ecx, [ebp + 0x60]
mov dl, 1
lea eax, [edi + 0xb0]
push eax
call fcn.004118b0
add esp, 4
cmp byte [edi + 0x94], 0
je 0x416f80
cmp dword [ebp + 0x14], 6
jne 0x416f80
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x18]
call fcn.0040b890
mov eax, dword [ebp + 0x50]
cmp dword [eax], 0
je 0x416f9f
mov eax, dword [0x479e60]
lea ecx, [esi + 0x10]
push ecx
call eax
mov dword [esi + 0x250], eax
mov dword [esi + 0x254], edx
mov byte [ebp - 4], 0x10
or eax, 0xffffffff
mov edx, dword [ebp + 0x60]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416fbe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x38]
inc ebx
cmp ebx, dword [eax + 4]
jl 0x416cc6
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x54]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], 0x46552c
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp + 0x50]
push ebx
call fcn.0042acf0
mov dword [ebp + 0x60], eax
test eax, eax
je 0x417070
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417162
mov byte [ebp - 4], 0x17
or ebx, 0xffffffff
mov edx, dword [ebp + 0x4c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41702e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
mov eax, ebx
mov edx, dword [ebp + 0x60]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41704c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x60], 0xe
jmp 0x417181
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x60], 0xb
jmp 0x41717e
cmp dword [ebp + 0x1c], 0
mov edi, dword [ebx + 8]
mov dword [ebp + 0x28], edi
jne 0x41708e
mov dword [ebp + 0x60], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417162
test edi, edi
je 0x4170bf
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp + 0x30]
mov esi, eax
cmp esi, ecx
je 0x4170b7
mov edx, dword [ebp + 0x2c]
lea ecx, [ebp + 0x2c]
call dword [edx + 4]
mov ecx, esi
mov dword [ebp + 0x30], ecx
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x20]
lea eax, [ebp + 0x50]
push eax
push 0
lea eax, [ebp + 0x18]
push eax
push 0x4299f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov dword [ebp + 0x40], 0x46552c
mov dword [ebp + 0x44], esi
mov byte [ebp - 4], 0x27
test edi, edi
je 0x4170f3
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x417136
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 0x26
mov dword [ebp + 0x40], 0x46552c
test esi, esi
je 0x417083
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov dword [ebp + 0x44], 0
jmp 0x417162
mov byte [ebp - 4], 0x26
mov dword [ebp + 0x40], 0x46552c
test esi, esi
je 0x417157
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov dword [ebp + 0x44], 0
jmp 0x41715d
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x46552c
test eax, eax
je 0x41717e
push eax
call esi
mov dword [ebp - 0x10], 0
or ebx, 0xffffffff
mov byte [ebp - 4], 0x2a
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x2c], 0x46552c
test eax, eax
je 0x41719d
push eax
call esi
mov dword [ebp + 0x30], 0
mov byte [ebp - 4], 0x29
lea eax, [ebp + 0x24]
mov dword [ebp + 0x44], eax
mov byte [ebp - 4], 0x29
mov eax, ebx
mov edx, dword [ebp + 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4171c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0x18]
call fcn.0040b7f0
mov byte [ebp - 4], 0x2d
xor edi, edi
mov ecx, dword [ebp + 0x58]
mov eax, ecx
mov dword [ebp + 0x48], eax
test eax, eax
jle 0x417245
cmp edi, ecx
jge 0x4172e3
mov eax, dword [ebp + 0x54]
mov esi, dword [eax + edi*4]
mov dword [ebp + 0x44], esi
test esi, esi
je 0x41723f
mov byte [ebp - 4], 0x2e
lea eax, [esi + 0x258]
mov dword [ebp], eax
mov byte [ebp - 4], 0x2e
mov edx, dword [eax]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417222
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2d
lea ecx, [esi + 0x10]
call fcn.0042aa90
push 0x260
push esi
call fcn.0043889a
mov ecx, dword [ebp + 0x58]
add esp, 8
inc edi
cmp edi, dword [ebp + 0x48]
jl 0x4171e3
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0x54]
test eax, eax
je 0x417260
push eax
call fcn.00441319
add esp, 4
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 0
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41728c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp + 4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4172aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x60]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x34]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4172cc
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x64]
pop ebp
ret 0x10
push 1
push 0xc000008c
call fcn.0040ce70
push 0x80004005
call fcn.00404020
nop dword [eax]
jp 0x41736c
inc ecx
add byte [esi + 0x416e], al
add byte [ecx], al
add dword [ecx], eax
add byte [eax], al
int3
mov edx, dword [eax]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417386
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040b7f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret