Function at 0x46c82f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov dword [ebp - 0x14], ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.0043fd9a
lea ecx, [ebp - 0x44]
call fcn.00440008
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.00448399
mov ecx, dword [ebp - 0x14]
xor esi, esi
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.00402e5f
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.00439c95
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
jmp 0x46c904
cmp word [esi + 2], 0x2d
jne 0x46c917
push 2
lea eax, [ebp + 8]
push eax
push 0x4b8e58
call fcn.00439d66
add esp, 0xc
test eax, eax
jne 0x46c914
push str.__try
push 5
pop eax
lea ebx, [ebp + 8]
call fcn.0043fa18
test al, al
pop ecx
je 0x46c8bf
mov dword [ebp - 0xc], 1
jmp 0x46c905
push 0x4b8e3c
push 6
pop eax
lea ebx, [ebp + 8]
call fcn.0043fa18
test al, al
pop ecx
je 0x46c8dd
mov dword [ebp - 0xc], 2
jmp 0x46c905
push 0x4b8e2c
push 7
pop eax
lea ebx, [ebp + 8]
call fcn.0043fa18
test al, al
pop ecx
je 0x46c8fb
mov dword [ebp - 4], 1
jmp 0x46c905
lea eax, [ebp + 8]
push eax
call fcn.00405444
pop ecx
mov esi, dword [ebp + 8]
cmp word [esi], 0x2d
je 0x46c87f
jmp 0x46c917
mov esi, dword [ebp + 8]
push 0x2c
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
call fcn.0043f8e8
mov eax, dword [ebp + 8]
xor edi, edi
cmp word [eax], di
pop ecx
je 0x46c941
mov word [eax], di
inc eax
inc eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.00439c95
pop ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00448401
push esi
lea ecx, [ebp - 0x38]
call fcn.00448399
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00439c95
mov esi, dword [ebp - 8]
cmp word [esi], di
pop ecx
jne 0x46c974
xor esi, esi
jmp 0x46cd04
lea ecx, [ebp - 0x50]
call fcn.00440008
cmp word [esi], di
je 0x46cb69
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
push 0xcd
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
mov dword [ebp - 0x30], esi
call fcn.0041a38c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, eax
jmp 0x46c9d8
xor edx, edx
mov dx, word [eax]
cmp dx, 0x61
jb 0x46c9cb
cmp dx, 0x7a
ja 0x46c9cb
add edx, 0xffffffe0
mov word [eax], dx
jmp 0x46c9d6
cmp dx, 0x5c
jne 0x46c9d6
mov word [eax], 0x2f
inc eax
inc eax
cmp word [eax], si
jne 0x46c9b2
mov eax, ecx
mov dword [ebp + 8], eax
cmp word [ecx], 0x2d
mov dword [ebp - 0x18], esi
jne 0x46ca16
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
add ecx, 2
push eax
mov dword [ebp + 8], ecx
call fcn.0043c486
mov eax, dword [ebp + 8]
cmp word [eax], 0x3a
pop ecx
pop ecx
jne 0x46ca0e
inc eax
inc eax
mov dword [ebp + 8], eax
cmp dword [ebp - 0x18], esi
jge 0x46ca16
mov dword [ebp - 0x18], esi
cmp word [eax], si
je 0x46cb5c
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
xor esi, esi
cmp dword [ebp - 0x3c], esi
mov dword [ebp - 0x30], eax
jle 0x46ca5e
push 4
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.0043ffcb
add esp, 0x10
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x46ca5a
inc esi
cmp esi, dword [ebp - 0x3c]
jl 0x46ca32
jmp 0x46ca5e
and dword [ebp + 8], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x46cb5c
cmp dword [ebp - 4], 0
je 0x46ca7f
cmp word [eax], 0x23
je 0x46ca7f
dec eax
dec eax
mov dword [ebp + 8], eax
mov word [eax], 0x23
push dword [ebp + 8]
push str..thread
call fcn.0043af97
test al, al
pop ecx
pop ecx
je 0x46cab0
test byte [ebx + 0xe], 1
jne 0x46cb5c
push 0x4c9c14
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
or byte [ebx + 0xe], 1
jmp 0x46cb5c
push dword [ebp + 8]
push str..ole
call fcn.0043af97
test al, al
pop ecx
pop ecx
je 0x46caf8
test byte [ebx + 0xe], 1
jne 0x46cad8
push 0x4c9c14
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
or byte [ebx + 0xe], 1
mov al, byte [ebx + 0xe]
test al, 2
jne 0x46cb5c
or al, 2
mov byte [ebx + 0xe], al
call fcn.0043ec94
mov eax, dword [0x4c93d0]
test eax, eax
je 0x46cb5c
push 0
call eax
jmp 0x46cb5c
or dword [ebp - 0x20], 0xffffffff
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x20]
and eax, ecx
push eax
push 0
push dword [ebp + 8]
call fcn.0046c7c3
add esp, 0xc
cmp dword [ebp - 4], 0
mov esi, eax
je 0x46cb2d
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call fcn.00442235
add esp, 0xc
test esi, esi
je 0x46cb5c
mov eax, dword [ebp - 0x18]
push edi
lea ecx, [ebp - 0x50]
mov dword [esi + 0xc], eax
call fcn.0040ea70
push esi
lea ecx, [ebp - 0x44]
call fcn.0040ea70
push esi
push ebx
call fcn.00447574
cmp dword [ebp - 4], 0
pop ecx
pop ecx
jne 0x46cc7a
mov eax, dword [ebp - 8]
cmp word [eax], 0
jne 0x46c988
xor esi, esi
cmp dword [ebp - 0x3c], esi
jle 0x46ccfc
mov ebx, dword [ebp - 0x3c]
lea eax, [ebx*4 + 4]
push eax
lea ecx, [ebp - 0x34]
call fcn.0043fc43
test ebx, ebx
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
jle 0x46cbb5
push 4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0043ffcb
mov eax, dword [eax]
mov eax, dword [eax + 4]
add esp, 0x10
mov dword [edi + esi*4], eax
inc esi
cmp esi, dword [ebp - 0x3c]
jl 0x46cb94
xor esi, esi
xor eax, eax
inc esi
cmp ebx, esi
setne al
mov dword [ebp - 8], esi
mov dword [ebp - 0x24], eax
xor eax, eax
cmp dword [ebp - 0x24], eax
mov dword [ebp - 0x10], eax
je 0x46cc6f
cmp dword [ebp - 0xc], eax
jne 0x46cc6f
push 0x18
lea ecx, [ebp - 0x20]
call fcn.0043fc43
mov esi, dword [ebp - 0x20]
push esi
call fcn.00439c31
mov eax, dword [ebp - 4]
and dword [esi], 0
or dword [esi + 0xc], 0xffffffff
mov dword [esp], 0x4c8bd0
mov ebx, 0x10000
push ebx
push esi
push 0x43eeeb
push ebx
mov dword [esi + 4], edi
mov edi, dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0
mov dword [esi + 8], eax
mov dword [esi + 0x10], 3
call edi
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x46cc4a
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x4c8bd0
push ebx
push esi
push 0x43eeeb
push ebx
push 0
call edi
test eax, eax
mov dword [ebp - 0x10], eax
je 0x46cc5f
and dword [ebp - 0x20], 0
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00439cfd
mov ebx, dword [ebp - 4]
xor esi, esi
inc esi
xor eax, eax
cmp dword [ebp - 0xc], 2
jne 0x46cc7f
mov dword [ebp - 8], eax
jmp 0x46ccc1
mov esi, dword [ebp - 0x20]
jmp 0x46ccfc
cmp dword [ebp - 0xc], eax
je 0x46cdab
push eax
push esi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
cmp eax, ebx
jae 0x46ccc1
xor esi, esi
cmp dword [ebp - 0x3c], esi
mov dword [ebp - 8], esi
jle 0x46ccc1
push 4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0043ffcb
mov eax, dword [eax]
add esp, 0x10
inc esi
cmp esi, dword [ebp - 0x3c]
mov byte [eax + 8], 1
jl 0x46cca2
mov eax, dword [ebp - 0x1c]
xor esi, esi
cmp word [eax], si
je 0x46ccda
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
call fcn.00442235
add esp, 0xc
cmp dword [ebp - 0x10], esi
je 0x46cce8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0x14]
push esi
call fcn.0046496c
lea ecx, [ebp - 0x34]
call fcn.00439cfd
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x50]
call fcn.00439cfd
lea ecx, [ebp - 0x38]
call fcn.00439cfd
lea ecx, [ebp - 0x28]
call fcn.00439cfd
lea ecx, [ebp - 0x44]
call fcn.00439cfd
lea ecx, [ebp - 0x1c]
call fcn.00439cfd
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp - 0x24], 0
jne 0x46cd4d
mov ecx, dword [ebp - 0x14]
push 0x4ff
push 0x3e8
push 0
push dword [ebp - 0x18]
push ebx
call fcn.00411d68
jmp 0x46cd5a
push 0x64
push esi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
cmp eax, ebx
jb 0x46cc98
cmp eax, 0xffffffff
jne 0x46cd6e
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov edi, 0x7cf
cmp byte [0x4c72b4], 0
jle 0x46ccc1
push esi
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x46cdab
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
dec edi
jns 0x46cd73
cmp byte [0x4c72b4], 0
jg 0x46cd2d
jmp 0x46ccc1