Function at 0x477f95
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.00444e32
lea ecx, [ebp - 0x44]
call fcn.004450a0
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0044e66d
mov ecx, dword [ebp - 4]
xor esi, esi
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.00402ecb
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0043e611
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
jmp 0x47806a
cmp word [esi + 2], 0x2d
jne 0x47807d
push 2
lea eax, [ebp + 8]
push eax
push 0x4cba98
call fcn.0043e73f
add esp, 0xc
test eax, eax
jne 0x47807a
push str.__try
push 5
pop eax
lea ebx, [ebp + 8]
call fcn.00444a61
test al, al
pop ecx
je 0x478025
mov dword [ebp - 0x10], 1
jmp 0x47806b
push 0x4cba7c
push 6
pop eax
lea ebx, [ebp + 8]
call fcn.00444a61
test al, al
pop ecx
je 0x478043
mov dword [ebp - 0x10], 2
jmp 0x47806b
push 0x4cba6c
push 7
pop eax
lea ebx, [ebp + 8]
call fcn.00444a61
test al, al
pop ecx
je 0x478061
mov dword [ebp - 8], 1
jmp 0x47806b
lea eax, [ebp + 8]
push eax
call fcn.00405b6e
pop ecx
mov esi, dword [ebp + 8]
cmp word [esi], 0x2d
je 0x477fe5
jmp 0x47807d
mov esi, dword [ebp + 8]
push 0x2c
lea eax, [ebp + 8]
xor edi, edi
mov dword [ebp + 8], esi
call fcn.00405b85
mov eax, dword [ebp + 8]
cmp word [eax], di
pop ecx
je 0x4780a7
mov word [eax], di
inc eax
inc eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0043e611
pop ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0044e6d5
push esi
lea ecx, [ebp - 0x38]
call fcn.0044e66d
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043e611
mov esi, dword [ebp - 0xc]
cmp word [esi], di
pop ecx
je 0x47853a
lea ecx, [ebp - 0x50]
call fcn.004450a0
cmp word [esi], di
je 0x4783a9
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.0041a317
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, eax
jmp 0x478136
xor edx, edx
mov dx, word [eax]
cmp dx, 0x61
jb 0x478129
cmp dx, 0x7a
ja 0x478129
add edx, 0xffffffe0
mov word [eax], dx
jmp 0x478134
cmp dx, 0x5c
jne 0x478134
mov word [eax], 0x2f
inc eax
inc eax
cmp word [eax], di
jne 0x478110
mov eax, ecx
mov dword [ebp + 8], eax
cmp word [ecx], 0x2d
mov dword [ebp - 0x18], edi
jne 0x478174
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
add ecx, 2
push eax
mov dword [ebp + 8], ecx
call fcn.00441162
mov eax, dword [ebp + 8]
cmp word [eax], 0x3a
pop ecx
pop ecx
jne 0x47816c
inc eax
inc eax
mov dword [ebp + 8], eax
cmp dword [ebp - 0x18], edi
jge 0x478174
mov dword [ebp - 0x18], edi
cmp word [eax], di
je 0x47839d
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 0x4781bb
push 4
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.00445063
add esp, 0x10
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x4781b8
inc esi
cmp esi, dword [ebp - 0x3c]
jl 0x478190
jmp 0x4781bb
mov dword [ebp + 8], edi
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x47839d
cmp dword [ebp - 8], edi
je 0x4781db
cmp word [eax], 0x23
je 0x4781db
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.0043fb03
test al, al
pop ecx
pop ecx
je 0x47821c
call fcn.00402db5
call fcn.0044391b
mov ecx, dword [ebp - 4]
mov al, byte [ecx + 0xe]
test al, 1
jne 0x47839d
or al, 1
push 0x4dcd58
mov byte [ecx + 0xe], al
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
jmp 0x47839d
push esi
push str..ole
call fcn.0043fb03
test al, al
pop ecx
pop ecx
je 0x478268
call fcn.00402db5
call fcn.0044391b
mov esi, dword [ebp - 4]
test byte [esi + 0xe], 2
jne 0x47839d
push 0x4dc8c4
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
or byte [esi + 0xe], 2
mov eax, dword [0x4dc4c0]
cmp eax, edi
je 0x47839d
push edi
call eax
jmp 0x47839d
push esi
push str..com
call fcn.0043fb03
test al, al
pop ecx
pop ecx
jne 0x478300
push 5
push esi
push 0x4cba4c
call fcn.0043fac4
add esp, 0xc
test al, al
jne 0x478300
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.00477f29
add esp, 0xc
cmp dword [ebp - 8], edi
mov esi, eax
je 0x4782c4
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 4]
call fcn.0044749d
add esp, 0xc
cmp esi, edi
je 0x47839d
mov eax, dword [ebp - 0x18]
push ebx
lea ecx, [ebp - 0x50]
mov dword [esi + 0xc], eax
call fcn.0040f92f
push esi
lea ecx, [ebp - 0x44]
call fcn.0040f92f
push esi
push dword [ebp - 4]
call fcn.0044dbbb
cmp dword [ebp - 8], edi
pop ecx
pop ecx
je 0x47839d
mov edi, dword [ebp - 0x20]
jmp 0x478532
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 0x47835c
lea eax, [ebp - 0x24]
push eax
inc esi
lea eax, [ebp + 8]
inc esi
push eax
mov dword [ebp + 8], esi
call fcn.004481e9
mov eax, dword [ebp + 8]
cmp word [eax], di
pop ecx
pop ecx
je 0x47835c
add dword [ebp + 8], 2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x18], edi
call fcn.004ab915
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004ab915
add esp, 0x10
call fcn.00402db5
call fcn.0044391b
mov ecx, dword [ebp - 4]
mov al, byte [ecx + 0xe]
test al, 4
jne 0x47839d
or al, 4
mov byte [ecx + 0xe], al
mov eax, dword [0x4dc4c8]
cmp eax, edi
je 0x47839d
push dword [ebp - 0x24]
push edi
call eax
cmp dword [ebp - 0x18], edi
jl 0x47839d
push edi
push edi
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [0x4dc4d4]
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x4780e8
cmp dword [ebp - 0x3c], edi
jle 0x478532
mov esi, dword [ebp - 0x3c]
lea eax, [esi*4 + 4]
push eax
lea ecx, [ebp - 0x34]
call fcn.00444cdb
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 8], esi
xor esi, esi
cmp dword [ebp - 0x3c], edi
mov dword [ebp - 0x18], ebx
jle 0x4783f6
push 4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00445063
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 0x4783d5
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 0x4784a8
cmp dword [ebp - 0x10], edi
jne 0x4784a8
push 0x18
lea ecx, [ebp - 0x20]
call fcn.00444cdb
mov esi, dword [ebp - 0x20]
push esi
call fcn.0043e587
mov eax, dword [ebp - 8]
and dword [esi], 0
or dword [esi + 0xc], 0xffffffff
mov dword [esp], 0x4dbc2c
mov edi, 0x10000
push edi
push esi
push 0x443c8d
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 0x478489
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x4dbc2c
push edi
push esi
push 0x443c8d
push edi
push 0
call ebx
test eax, eax
mov dword [ebp - 0x14], eax
je 0x47849e
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.0043e679
xor edi, edi
cmp dword [ebp - 0x10], 2
jne 0x4784b3
mov dword [ebp - 0xc], edi
jmp 0x4784f9
cmp dword [ebp - 0x10], edi
je 0x4785e5
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 0x4784f9
xor esi, esi
cmp dword [ebp - 0x3c], edi
mov dword [ebp - 0xc], edi
jle 0x4784f9
push 4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00445063
mov eax, dword [eax]
add esp, 0x10
inc esi
cmp esi, dword [ebp - 0x3c]
mov byte [eax + 8], 1
jl 0x4784da
mov eax, dword [ebp - 0x1c]
cmp word [eax], di
je 0x478510
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0044749d
add esp, 0xc
cmp dword [ebp - 0x14], edi
je 0x47851e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
push edi
call fcn.0046e8cd
lea ecx, [ebp - 0x34]
call fcn.0043e679
mov edi, dword [ebp - 0xc]
lea ecx, [ebp - 0x50]
call fcn.0043e679
lea ecx, [ebp - 0x38]
call fcn.0043e679
lea ecx, [ebp - 0x28]
call fcn.0043e679
lea ecx, [ebp - 0x44]
call fcn.0043e679
lea ecx, [ebp - 0x1c]
call fcn.0043e679
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp - 0x24], edi
jne 0x478583
mov ecx, dword [ebp - 4]
push 0x4ff
push 0x3e8
push edi
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.00412f4b
jmp 0x478593
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 0x4784d0
cmp eax, 0xffffffff
jne 0x4785a9
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov esi, 0x7cf
cmp byte [0x4da2ec], 0
jle 0x4784f9
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 0x4785e5
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 0x4785ae
cmp byte [0x4da2ec], 0
jg 0x478563
jmp 0x4784f9