Function at 0x4c0fc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d1fc
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5b339c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
sub esp, 0x1c
mov esi, ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
push 0x57ea28
mov byte [ebp - 0x59], 1
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ecx, dword [esi + 0x19c]
call fcn.004d8460
mov ecx, dword [esi + 0x19c]
mov dword [ebp - 4], 0xffffffff
call fcn.004d81c0
test al, al
mov eax, dword [esi + 0xb0]
lea ecx, [eax + 8]
mov eax, dword [ecx]
je 0x4c1042
mov edx, dword [eax + 8]
jmp 0x4c1045
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [esi + 0x19c]
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x60], esp
push eax
call fcn.004d8270
mov ecx, dword [esi + 0xb0]
call fcn.004d4b50
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x60], esp
push ecx
mov ecx, dword [esi + 0x19c]
call fcn.004d8300
mov ecx, dword [esi + 0xb0]
call fcn.004d4bd0
mov ecx, dword [esi + 0x19c]
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x60], esp
push edx
call fcn.004d81e0
mov ecx, dword [esi + 0xb0]
call fcn.004d4c50
mov ecx, dword [esi + 0x19c]
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x60], esp
push eax
call fcn.004bec40
mov ecx, dword [esi + 0xb0]
call fcn.004d80a0
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [esi + 0x19c]
call fcn.004d8c10
lea ebx, [esi + 0x15c]
lea edx, [ebp - 0x8c]
push ebx
push edx
mov dword [ebp - 4], 4
call fcn.004c0f00
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov edi, dword [ebx]
add esp, 8
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], eax
nop
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x68], eax
mov eax, dword [ebx]
test edi, edi
je 0x4c1110
cmp edi, eax
je 0x4c1116
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x68]
cmp dword [ebp - 0x60], ecx
je 0x4c1165
test edi, edi
jne 0x4c1161
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebp - 0x60]
cmp edx, dword [edi + 0x18]
jne 0x4c1136
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x60]
mov edi, dword [eax + 0xc]
mov ecx, edi
call fcn.004d1b50
test al, al
je 0x4c11be
push 1
mov ecx, edi
call fcn.004d1d90
test al, al
je 0x4c11be
lea ecx, [ebp - 0x64]
call fcn.004bc600
mov edi, dword [ebp - 0x64]
jmp 0x4c1100
mov edi, dword [edi]
jmp 0x4c1128
cmp byte [ebp - 0x59], 1
jne 0x4c11c2
cmp byte [ebp + 8], 1
jne 0x4c11c2
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc4], eax
test eax, eax
je 0x4c11be
push 0
push 0
push esi
push 0x4bde30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc0], eax
test eax, eax
jne 0x4c11c2
mov ecx, dword [esi + 0xc4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc4], 0
mov byte [ebp - 0x59], 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042aac0
mov al, byte [ebp - 0x59]
jmp 0x4c1256
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051973e
mov esp, ebp
pop ebp
ret 4