Function at 0x476be8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov dword [ebp - 4], ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.00444a10
lea ecx, [ebp - 0x44]
call fcn.00444c7e
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0044df7a
mov ecx, dword [ebp - 4]
xor esi, esi
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.00402ee8
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0043e425
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
jmp 0x476cbd
cmp word [esi + 2], 0x2d
jne 0x476cd0
push 2
lea eax, [ebp + 8]
push eax
push 0x4ca948
call fcn.0043e51d
add esp, 0xc
test eax, eax
jne 0x476ccd
push str.__try
push 5
pop eax
lea ebx, [ebp + 8]
call fcn.0044463f
test al, al
pop ecx
je 0x476c78
mov dword [ebp - 0x10], 1
jmp 0x476cbe
push 0x4ca92c
push 6
pop eax
lea ebx, [ebp + 8]
call fcn.0044463f
test al, al
pop ecx
je 0x476c96
mov dword [ebp - 0x10], 2
jmp 0x476cbe
push 0x4ca91c
push 7
pop eax
lea ebx, [ebp + 8]
call fcn.0044463f
test al, al
pop ecx
je 0x476cb4
mov dword [ebp - 8], 1
jmp 0x476cbe
lea eax, [ebp + 8]
push eax
call fcn.00409168
pop ecx
mov esi, dword [ebp + 8]
cmp word [esi], 0x2d
je 0x476c38
jmp 0x476cd0
mov esi, dword [ebp + 8]
push 0x2c
lea eax, [ebp + 8]
xor edi, edi
mov dword [ebp + 8], esi
call fcn.004a3a6c
mov eax, dword [ebp + 8]
cmp word [eax], di
pop ecx
je 0x476cfa
mov word [eax], di
inc eax
inc eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0043e425
pop ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0044dfe2
push esi
lea ecx, [ebp - 0x38]
call fcn.0044df7a
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043e425
mov esi, dword [ebp - 0xc]
cmp word [esi], di
pop ecx
je 0x47718d
lea ecx, [ebp - 0x50]
call fcn.00444c7e
cmp word [esi], di
je 0x476ffc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
push 0xcd
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], edi
call fcn.0041a299
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, eax
jmp 0x476d89
xor edx, edx
mov dx, word [eax]
cmp dx, 0x61
jb 0x476d7c
cmp dx, 0x7a
ja 0x476d7c
add edx, 0xffffffe0
mov word [eax], dx
jmp 0x476d87
cmp dx, 0x5c
jne 0x476d87
mov word [eax], 0x2f
inc eax
inc eax
cmp word [eax], di
jne 0x476d63
mov eax, ecx
mov dword [ebp + 8], eax
cmp word [ecx], 0x2d
mov dword [ebp - 0x18], edi
jne 0x476dc7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
add ecx, 2
push eax
mov dword [ebp + 8], ecx
call fcn.00440edc
mov eax, dword [ebp + 8]
cmp word [eax], 0x3a
pop ecx
pop ecx
jne 0x476dbf
inc eax
inc eax
mov dword [ebp + 8], eax
cmp dword [ebp - 0x18], edi
jge 0x476dc7
mov dword [ebp - 0x18], edi
cmp word [eax], di
je 0x476ff0
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
xor esi, esi
cmp dword [ebp - 0x3c], edi
mov dword [ebp - 0x30], eax
jle 0x476e0e
push 4
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.00444c41
add esp, 0x10
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x476e0b
inc esi
cmp esi, dword [ebp - 0x3c]
jl 0x476de3
jmp 0x476e0e
mov dword [ebp + 8], edi
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x476ff0
cmp dword [ebp - 8], edi
je 0x476e2e
cmp word [eax], 0x23
je 0x476e2e
dec eax
dec eax
mov dword [ebp + 8], eax
mov word [eax], 0x23
mov esi, dword [ebp + 8]
push esi
push str..thread
call fcn.0043f8c3
test al, al
pop ecx
pop ecx
je 0x476e6f
call fcn.00402dd3
call fcn.00443694
mov ecx, dword [ebp - 4]
mov al, byte [ecx + 0xe]
test al, 1
jne 0x476ff0
or al, 1
push 0x4dbd30
mov byte [ecx + 0xe], al
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
jmp 0x476ff0
push esi
push str..ole
call fcn.0043f8c3
test al, al
pop ecx
pop ecx
je 0x476ebb
call fcn.00402dd3
call fcn.00443694
mov esi, dword [ebp - 4]
test byte [esi + 0xe], 2
jne 0x476ff0
push 0x4db89c
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
or byte [esi + 0xe], 2
mov eax, dword [0x4db4a8]
cmp eax, edi
je 0x476ff0
push edi
call eax
jmp 0x476ff0
push esi
push str..com
call fcn.0043f8c3
test al, al
pop ecx
pop ecx
jne 0x476f53
push 5
push esi
push 0x4ca8fc
call fcn.0043f884
add esp, 0xc
test al, al
jne 0x476f53
or dword [ebp - 0x20], 0xffffffff
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x20]
and eax, ecx
push eax
push edi
push esi
call fcn.00476b7c
add esp, 0xc
cmp dword [ebp - 8], edi
mov esi, eax
je 0x476f17
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 4]
call fcn.004470b2
add esp, 0xc
cmp esi, edi
je 0x476ff0
mov eax, dword [ebp - 0x18]
push ebx
lea ecx, [ebp - 0x50]
mov dword [esi + 0xc], eax
call fcn.0040f854
push esi
lea ecx, [ebp - 0x44]
call fcn.0040f854
push esi
push dword [ebp - 4]
call fcn.0044d4fc
cmp dword [ebp - 8], edi
pop ecx
pop ecx
je 0x476ff0
mov edi, dword [ebp - 0x20]
jmp 0x477185
add esi, 8
mov dword [ebp + 8], esi
cmp word [esi], di
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], 0xfffffc18
mov dword [ebp - 0x20], 3
je 0x476faf
lea eax, [ebp - 0x24]
push eax
inc esi
lea eax, [ebp + 8]
inc esi
push eax
mov dword [ebp + 8], esi
call fcn.00447df7
mov eax, dword [ebp + 8]
cmp word [eax], di
pop ecx
pop ecx
je 0x476faf
add dword [ebp + 8], 2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x18], edi
call fcn.004aaddd
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004aaddd
add esp, 0x10
call fcn.00402dd3
call fcn.00443694
mov ecx, dword [ebp - 4]
mov al, byte [ecx + 0xe]
test al, 4
jne 0x476ff0
or al, 4
mov byte [ecx + 0xe], al
mov eax, dword [0x4db4b0]
cmp eax, edi
je 0x476ff0
push dword [ebp - 0x24]
push edi
call eax
cmp dword [ebp - 0x18], edi
jl 0x476ff0
push edi
push edi
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [0x4db4bc]
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x476d3b
cmp dword [ebp - 0x3c], edi
jle 0x477185
mov esi, dword [ebp - 0x3c]
lea eax, [esi*4 + 4]
push eax
lea ecx, [ebp - 0x34]
call fcn.004448b9
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 8], esi
xor esi, esi
cmp dword [ebp - 0x3c], edi
mov dword [ebp - 0x18], ebx
jle 0x477049
push 4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00444c41
mov eax, dword [eax]
mov eax, dword [eax + 4]
add esp, 0x10
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0x3c]
jl 0x477028
xor eax, eax
xor ecx, ecx
inc eax
cmp dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
setne cl
mov dword [ebp - 0x14], edi
cmp ecx, edi
mov dword [ebp - 0x24], ecx
je 0x4770fb
cmp dword [ebp - 0x10], edi
jne 0x4770fb
push 0x18
lea ecx, [ebp - 0x20]
call fcn.004448b9
mov esi, dword [ebp - 0x20]
push esi
call fcn.0043e39b
mov eax, dword [ebp - 8]
and dword [esi], 0
or dword [esi + 0xc], 0xffffffff
mov dword [esp], 0x4dac18
mov edi, 0x10000
push edi
push esi
push 0x443930
push edi
mov dword [esi + 4], ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0
mov dword [esi + 8], eax
mov dword [esi + 0x10], 3
call ebx
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x4770dc
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x4dac18
push edi
push esi
push 0x443930
push edi
push 0
call ebx
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4770f1
and dword [ebp - 0x20], 0
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 1
lea ecx, [ebp - 0x20]
call fcn.0043e48d
xor edi, edi
cmp dword [ebp - 0x10], 2
jne 0x477106
mov dword [ebp - 0xc], edi
jmp 0x47714c
cmp dword [ebp - 0x10], edi
je 0x477238
push edi
push 1
push dword [ebp - 0x18]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
cmp eax, dword [ebp - 8]
jae 0x47714c
xor esi, esi
cmp dword [ebp - 0x3c], edi
mov dword [ebp - 0xc], edi
jle 0x47714c
push 4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00444c41
mov eax, dword [eax]
add esp, 0x10
inc esi
cmp esi, dword [ebp - 0x3c]
mov byte [eax + 8], 1
jl 0x47712d
mov eax, dword [ebp - 0x1c]
cmp word [eax], di
je 0x477163
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.004470b2
add esp, 0xc
cmp dword [ebp - 0x14], edi
je 0x477171
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
push edi
call fcn.0046d51e
lea ecx, [ebp - 0x34]
call fcn.0043e48d
mov edi, dword [ebp - 0xc]
lea ecx, [ebp - 0x50]
call fcn.0043e48d
lea ecx, [ebp - 0x38]
call fcn.0043e48d
lea ecx, [ebp - 0x28]
call fcn.0043e48d
lea ecx, [ebp - 0x44]
call fcn.0043e48d
lea ecx, [ebp - 0x1c]
call fcn.0043e48d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp - 0x24], edi
jne 0x4771d6
mov ecx, dword [ebp - 4]
push 0x4ff
push 0x3e8
push edi
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.00412ee2
jmp 0x4771e6
push 0x64
push 1
push dword [ebp - 0x18]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
cmp eax, dword [ebp - 8]
jb 0x477123
cmp eax, 0xffffffff
jne 0x4771fc
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov esi, 0x7cf
cmp byte [0x4d92d4], 0
jle 0x47714c
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.user32.dll_PeekMessageW]
test eax, eax
je 0x477238
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 esi
jns 0x477201
cmp byte [0x4d92d4], 0
jg 0x4771b6
jmp 0x47714c