Function at 0x478103
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.00444f6c
lea ecx, [ebp - 0x44]
call fcn.004451da
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0044e827
mov ecx, dword [ebp - 4]
xor esi, esi
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.00402ef7
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0043e7bd
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
jmp 0x4781d8
cmp word [esi + 2], 0x2d
jne 0x4781eb
push 2
lea eax, [ebp + 8]
push eax
push 0x4ccab0
call fcn.0043e8b5
add esp, 0xc
test eax, eax
jne 0x4781e8
push str.__try
push 5
pop eax
lea ebx, [ebp + 8]
call fcn.00444b9b
test al, al
pop ecx
je 0x478193
mov dword [ebp - 0x10], 1
jmp 0x4781d9
push 0x4cca94
push 6
pop eax
lea ebx, [ebp + 8]
call fcn.00444b9b
test al, al
pop ecx
je 0x4781b1
mov dword [ebp - 0x10], 2
jmp 0x4781d9
push 0x4cca84
push 7
pop eax
lea ebx, [ebp + 8]
call fcn.00444b9b
test al, al
pop ecx
je 0x4781cf
mov dword [ebp - 8], 1
jmp 0x4781d9
lea eax, [ebp + 8]
push eax
call fcn.00409344
pop ecx
mov esi, dword [ebp + 8]
cmp word [esi], 0x2d
je 0x478153
jmp 0x4781eb
mov esi, dword [ebp + 8]
push 0x2c
lea eax, [ebp + 8]
xor edi, edi
mov dword [ebp + 8], esi
call fcn.00405bbb
mov eax, dword [ebp + 8]
cmp word [eax], di
pop ecx
je 0x478215
mov word [eax], di
inc eax
inc eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0043e7bd
pop ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0044e88f
push esi
lea ecx, [ebp - 0x38]
call fcn.0044e827
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043e7bd
mov esi, dword [ebp - 0xc]
cmp word [esi], di
pop ecx
je 0x4786a8
lea ecx, [ebp - 0x50]
call fcn.004451da
cmp word [esi], di
je 0x478517
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.0041a4ff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, eax
jmp 0x4782a4
xor edx, edx
mov dx, word [eax]
cmp dx, 0x61
jb 0x478297
cmp dx, 0x7a
ja 0x478297
add edx, 0xffffffe0
mov word [eax], dx
jmp 0x4782a2
cmp dx, 0x5c
jne 0x4782a2
mov word [eax], 0x2f
inc eax
inc eax
cmp word [eax], di
jne 0x47827e
mov eax, ecx
mov dword [ebp + 8], eax
cmp word [ecx], 0x2d
mov dword [ebp - 0x18], edi
jne 0x4782e2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
add ecx, 2
push eax
mov dword [ebp + 8], ecx
call fcn.004412d1
mov eax, dword [ebp + 8]
cmp word [eax], 0x3a
pop ecx
pop ecx
jne 0x4782da
inc eax
inc eax
mov dword [ebp + 8], eax
cmp dword [ebp - 0x18], edi
jge 0x4782e2
mov dword [ebp - 0x18], edi
cmp word [eax], di
je 0x47850b
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 0x478329
push 4
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.0044519d
add esp, 0x10
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x478326
inc esi
cmp esi, dword [ebp - 0x3c]
jl 0x4782fe
jmp 0x478329
mov dword [ebp + 8], edi
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x47850b
cmp dword [ebp - 8], edi
je 0x478349
cmp word [eax], 0x23
je 0x478349
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.0043fc58
test al, al
pop ecx
pop ecx
je 0x47838a
call fcn.00402de1
call fcn.00443a8f
mov ecx, dword [ebp - 4]
mov al, byte [ecx + 0xe]
test al, 1
jne 0x47850b
or al, 1
push 0x4ddd50
mov byte [ecx + 0xe], al
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x47850b
push esi
push str..ole
call fcn.0043fc58
test al, al
pop ecx
pop ecx
je 0x4783d6
call fcn.00402de1
call fcn.00443a8f
mov esi, dword [ebp - 4]
test byte [esi + 0xe], 2
jne 0x47850b
push 0x4dd8bc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
or byte [esi + 0xe], 2
mov eax, dword [0x4dd4b8]
cmp eax, edi
je 0x47850b
push edi
call eax
jmp 0x47850b
push esi
push str..com
call fcn.0043fc58
test al, al
pop ecx
pop ecx
jne 0x47846e
push 5
push esi
push 0x4cca64
call fcn.0043fc19
add esp, 0xc
test al, al
jne 0x47846e
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.00478097
add esp, 0xc
cmp dword [ebp - 8], edi
mov esi, eax
je 0x478432
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 4]
call fcn.00447664
add esp, 0xc
cmp esi, edi
je 0x47850b
mov eax, dword [ebp - 0x18]
push ebx
lea ecx, [ebp - 0x50]
mov dword [esi + 0xc], eax
call fcn.0040fa5f
push esi
lea ecx, [ebp - 0x44]
call fcn.0040fa5f
push esi
push dword [ebp - 4]
call fcn.0044dd8b
cmp dword [ebp - 8], edi
pop ecx
pop ecx
je 0x47850b
mov edi, dword [ebp - 0x20]
jmp 0x4786a0
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 0x4784ca
lea eax, [ebp - 0x24]
push eax
inc esi
lea eax, [ebp + 8]
inc esi
push eax
mov dword [ebp + 8], esi
call fcn.004483d5
mov eax, dword [ebp + 8]
cmp word [eax], di
pop ecx
pop ecx
je 0x4784ca
add dword [ebp + 8], 2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x18], edi
call fcn.00414b04
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00414b04
add esp, 0x10
call fcn.00402de1
call fcn.00443a8f
mov ecx, dword [ebp - 4]
mov al, byte [ecx + 0xe]
test al, 4
jne 0x47850b
or al, 4
mov byte [ecx + 0xe], al
mov eax, dword [0x4dd4c0]
cmp eax, edi
je 0x47850b
push dword [ebp - 0x24]
push edi
call eax
cmp dword [ebp - 0x18], edi
jl 0x47850b
push edi
push edi
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [0x4dd4cc]
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x478256
cmp dword [ebp - 0x3c], edi
jle 0x4786a0
mov esi, dword [ebp - 0x3c]
lea eax, [esi*4 + 4]
push eax
lea ecx, [ebp - 0x34]
call fcn.00444e15
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 8], esi
xor esi, esi
cmp dword [ebp - 0x3c], edi
mov dword [ebp - 0x18], ebx
jle 0x478564
push 4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0044519d
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 0x478543
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 0x478616
cmp dword [ebp - 0x10], edi
jne 0x478616
push 0x18
lea ecx, [ebp - 0x20]
call fcn.00444e15
mov esi, dword [ebp - 0x20]
push esi
call fcn.0043e731
mov eax, dword [ebp - 8]
and dword [esi], 0
or dword [esi + 0xc], 0xffffffff
mov dword [esp], 0x4dcc24
mov edi, 0x10000
push edi
push esi
push 0x443e01
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 0x4785f7
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4dcc24
push edi
push esi
push 0x443e01
push edi
push 0
call ebx
test eax, eax
mov dword [ebp - 0x14], eax
je 0x47860c
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.0043e825
xor edi, edi
cmp dword [ebp - 0x10], 2
jne 0x478621
mov dword [ebp - 0xc], edi
jmp 0x478667
cmp dword [ebp - 0x10], edi
je 0x478753
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 0x478667
xor esi, esi
cmp dword [ebp - 0x3c], edi
mov dword [ebp - 0xc], edi
jle 0x478667
push 4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0044519d
mov eax, dword [eax]
add esp, 0x10
inc esi
cmp esi, dword [ebp - 0x3c]
mov byte [eax + 8], 1
jl 0x478648
mov eax, dword [ebp - 0x1c]
cmp word [eax], di
je 0x47867e
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00447664
add esp, 0xc
cmp dword [ebp - 0x14], edi
je 0x47868c
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push edi
call fcn.0046ea3b
lea ecx, [ebp - 0x34]
call fcn.0043e825
mov edi, dword [ebp - 0xc]
lea ecx, [ebp - 0x50]
call fcn.0043e825
lea ecx, [ebp - 0x38]
call fcn.0043e825
lea ecx, [ebp - 0x28]
call fcn.0043e825
lea ecx, [ebp - 0x44]
call fcn.0043e825
lea ecx, [ebp - 0x1c]
call fcn.0043e825
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp - 0x24], edi
jne 0x4786f1
mov ecx, dword [ebp - 4]
push 0x4ff
push 0x3e8
push edi
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.00413107
jmp 0x478701
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 0x47863e
cmp eax, 0xffffffff
jne 0x478717
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x7cf
cmp byte [0x4db2d4], 0
jle 0x478667
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 0x478753
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 0x47871c
cmp byte [0x4db2d4], 0
jg 0x4786d1
jmp 0x478667