Function at 0x6001566f
Capabilities:
Create thread

Disassembly:
mov eax, 0x60097bea
call fcn.60095eb0
sub esp, 0xf64
push ebx
push esi
mov esi, ecx
xor ebx, ebx
xor eax, eax
push edi
cmp dword [esi + 0x48], ebx
sete al
cmp eax, ebx
jl 0x60015c6a
call fcn.60019f6a
cmp eax, 2
mov eax, dword [esi + 0x7c]
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
push edx
push eax
sete byte [ebp - 0x15]
call dword [ecx + 0x54]
cmp eax, ebx
jl 0x60015c6a
cmp dword [ebp - 0x28], 1
mov eax, 0xf019
mov edi, 0xf13f
sete cl
cmp byte [ebp - 0x15], bl
je 0x600156d5
inc eax
mov edi, 0xf0a3
jmp 0x600156e3
test cl, cl
je 0x600156e3
mov eax, 0xf17c
mov edi, 0xf17d
lea ecx, [ebp - 0xf70]
push 0x104
push ecx
push eax
call fcn.60055c83
mov eax, dword [0x600be400]
lea ecx, [ebp - 0x64]
push 0x18
push ecx
push edi
push eax
call sub.WMMUtil.dll_Ordinal_107
test eax, eax
jne 0x60015734
mov eax, dword [0x600b767c]
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x10]
push str.Failed_to_load_resource_string__d
push eax
mov dword [ebp - 4], ebx
call fcn.600060f9
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.60005fa7
push dword [esi + 4]
lea eax, [ebp - 0xf70]
lea ecx, [ebp - 0x4e4]
push eax
push 0x806
lea eax, [ebp - 0x64]
push ebx
push eax
push ebx
call fcn.6001136b
mov dword [ebp - 0x4e4], 0x6009e59c
mov eax, dword [0x600be400]
lea ecx, [ebp - 0x6e4]
push 0x80
mov edi, 0xf017
push ecx
push edi
push eax
mov dword [ebp - 4], 1
call sub.WMMUtil.dll_Ordinal_107
test eax, eax
jne 0x600157b0
mov eax, dword [0x600b767c]
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x10]
push str.Failed_to_load_resource_string__d
push eax
mov byte [ebp - 4], 2
call fcn.600060f9
add esp, 0xc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.60005fa7
mov edi, 0x600be3f8
lea eax, [ebp - 0x6e4]
mov ecx, edi
mov dword [ebp - 0x498], eax
call fcn.6005f8d1
mov ecx, edi
mov dword [ebp - 0x49c], eax
mov dword [ebp - 0x14], 1
call fcn.6005f28a
test al, al
je 0x6001581d
cmp byte [ebp + 8], 0
jne 0x6001581d
mov eax, dword [0x600b767c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 3
call fcn.6005f25c
push eax
mov ecx, esi
call fcn.6001a371
test eax, eax
jge 0x60015a0f
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.60005fa7
mov eax, dword [esi + 0xa0]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push eax
call sub.WMMUtil.dll_Ordinal_18
mov edi, eax
call dword [0x600bdd18]
push eax
lea ecx, [ebp - 0x4e4]
call fcn.60011473
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 1
jne 0x60015c7b
push dword [esi + 4]
call dword [0x600bdc90]
mov eax, dword [esi + 0xa0]
lea ecx, [ebp - 0x26c]
push ecx
push eax
call sub.WMMUtil.dll_Ordinal_109
test eax, eax
je 0x60015af2
lea eax, [ebp - 0x26c]
push eax
call sub.WMMUtil.dll_Ordinal_59
cmp eax, 0xffffffff
je 0x6001589d
lea eax, [ebp - 0x26c]
push eax
call sub.WMMUtil.dll_Ordinal_32
mov dword [ebp + 8], ebx
call fcn.60034fc4
test al, al
je 0x60015a5f
mov eax, dword [esi + 0xa0]
cmp word [eax + 2], 0x3a
jne 0x60015a5f
cmp word [ebp - 0x26a], 0x3a
jne 0x60015a5f
movzx eax, word [eax]
mov edi, dword [sym.imp.MSVCRT.dll_toupper]
push eax
call edi
mov dword [ebp - 0x14], eax
movzx eax, word [ebp - 0x26c]
push eax
call edi
cmp word [ebp - 0x14], ax
pop ecx
pop ecx
je 0x60015a5f
mov eax, dword [esi + 0xa0]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.6004088a
test eax, eax
jl 0x60015a5f
cmp dword [ebp + 8], 0x800
seta al
test al, al
je 0x60015a5f
mov eax, dword [esi + 0xa0]
push 0xffff
mov dword [0x600be1b0], eax
lea eax, [ebp - 0x26c]
lea ecx, [ebp - 0xd68]
mov dword [0x600be1b4], eax
call fcn.60039288
mov eax, dword [0x600be400]
lea ecx, [ebp - 0x5e4]
push 0x80
mov edi, 0xf017
push ecx
push edi
push eax
mov byte [ebp - 4], 4
call sub.WMMUtil.dll_Ordinal_107
test eax, eax
jne 0x60015994
mov eax, dword [0x600b767c]
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0x14]
push str.Failed_to_load_resource_string__d
push eax
mov byte [ebp - 4], 5
call fcn.600060f9
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.60005fa7
lea eax, [ebp - 0x5e4]
push eax
lea eax, [ebp - 0xd48]
push eax
call fcn.6003951d
push dword [ebp + 8]
lea eax, [ebp - 0xd48]
push ebx
push eax
call fcn.600395a6
lea eax, [ebp - 0x30]
and byte [0x600be210], 0
push eax
lea eax, [ebp - 0xd68]
push ebx
push eax
push 0x60015cb4
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
je 0x60015a4c
push ebx
call dword [0x600bdd18]
push eax
lea ecx, [ebp - 0xd68]
call fcn.6001a3f0
cmp eax, 1
jne 0x60015a38
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xd48]
push eax
call fcn.6003985d
cmp dword [ebp - 0x2c], 4
setne bl
jmp 0x60015a4e
push 0x104
lea eax, [ebp - 0x26c]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.60005fa7
jmp 0x60015852
lea ecx, [ebp - 0xd68]
mov byte [ebp - 4], 1
call fcn.60039312
jmp 0x6001581d
mov bl, 1
lea ecx, [ebp - 0xd68]
mov byte [ebp - 4], 1
call fcn.60039312
jmp 0x60015a9e
push 1
push 0x7f02
push 1
lea ecx, [ebp - 0x24]
call fcn.6000769f
mov eax, dword [esi + 0xa0]
lea ecx, [ebp - 0x26c]
push ecx
push eax
call sub.WMMUtil.dll_Ordinal_119
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
cmp byte [ebp - 0x1c], 0
je 0x60015a9e
push dword [ebp - 0x20]
call dword [0x600bdde0]
and byte [ebp - 0x1c], 0
test bl, bl
je 0x60015af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x600b767c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x10]
push 0xf0a7
push eax
call fcn.60010e20
add esp, 0xc
push 0
push edi
push dword [ebp - 0x10]
push dword [esi + 4]
call dword [sym.imp.WMMUtil.dll_unsigned_int___stdcall_MPMessageBoxWithError_struct_HWND_____unsigned_short_int_const___unsigned_int__unsigned_int_]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.60005fa7
xor ebx, ebx
jmp 0x6001581d
xor ebx, ebx
push 1
push 0x7f02
push 1
lea ecx, [ebp - 0x24]
call fcn.6000769f
cmp dword [esi + 0x54], ebx
mov byte [ebp - 4], 7
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp + 8], ebx
je 0x60015bb7
mov eax, dword [esi + 0x7c]
cmp eax, ebx
je 0x60015bb7
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0x8c]
mov edi, eax
cmp edi, ebx
jl 0x60015bce
mov eax, dword [ebp + 8]
cmp eax, ebx
jbe 0x60015bb7
shl eax, 3
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
je 0x60015b67
mov eax, dword [ebp + 8]
shl eax, 3
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
jne 0x60015b80
cmp byte [ebp - 0x1c], 0
je 0x60015b76
push dword [ebp - 0x20]
call dword [0x600bdde0]
mov eax, 0x8007000e
jmp 0x60015c6a
push dword [ebp - 0x10]
mov eax, dword [esi + 0x7c]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push dword [ebp + 8]
push eax
call dword [ecx + 0x90]
mov edi, eax
cmp edi, ebx
jl 0x60015bce
cmp dword [ebp - 0x28], ebx
jne 0x60015be4
push dword [ebp - 0x10]
lea eax, [ebp - 0x26c]
push dword [ebp - 0x14]
push dword [ebp + 8]
push eax
call fcn.600152ab
jmp 0x60015bc8
cmp dword [ebp - 0x28], ebx
jne 0x60015be4
lea eax, [ebp - 0x26c]
push eax
call fcn.60015521
mov edi, eax
cmp edi, ebx
jge 0x60015be4
cmp byte [ebp - 0x1c], 0
je 0x60015bdd
push dword [ebp - 0x20]
call dword [0x600bdde0]
mov eax, edi
jmp 0x60015c6a
mov ecx, esi
call fcn.60012cde
push 1
push dword [esi + 4]
call dword [0x600bddd8]
mov eax, dword [esi + 0x88]
push ebx
push ebx
push 0xf0
push dword [esi + 0x30c]
mov edi, dword [eax + 0x1c8]
call sub.WMMUtil.dll_Ordinal_149
push dword [ebp - 0x10]
mov ecx, dword [esi + 0x88]
push dword [ebp - 0x14]
mov dword [ecx + 0x1c8], eax
mov ecx, dword [esi + 0x88]
lea eax, [ebp - 0x26c]
push dword [ebp + 8]
push eax
call fcn.60036f86
mov eax, dword [esi + 0x88]
push dword [ebp - 0x14]
mov dword [eax + 0x1c8], edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp byte [ebp - 0x1c], 0
pop ecx
pop ecx
je 0x60015c68
push dword [ebp - 0x20]
call dword [0x600bdde0]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
mov ecx, esi
call fcn.60014a6a
cmp eax, ebx
jl 0x60015c6a
push 1
mov ecx, esi
call fcn.60014d11
cmp eax, ebx
jl 0x60015c6a
mov ecx, esi
call fcn.60016604
cmp eax, ebx
jl 0x60015c6a
push dword [esi + 0xa0]
call sub.WMMUtil.dll_Ordinal_32
test eax, eax
jne 0x60015c68
mov eax, 0x80004005
jmp 0x60015c6a