Function at 0x418fc0
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
cmp dword [0x4cdf48], 0
push ebx
push esi
mov esi, eax
jne 0x418fe0
mov dword [0x4cdf48], 0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [edi + 0x20]
push ecx
mov ebx, 0x4cdf18
call fcn.00403020
add esp, 8
movzx ebx, ax
xor eax, eax
push eax
push 0x8000080
push 0x86000000
push eax
push esi
mov eax, edi
call fcn.00448d10
mov dword [esp + 0x14], eax
test esi, esi
je 0x41902e
mov edx, dword [esi + 8]
sub edx, dword [esi]
mov dword [edi + 0x84], edx
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 4]
mov dword [edi + 0x88], ecx
cmp dword [edi + 0x64], 0
je 0x419252
cmp dword [0x4e9d14], 0
mov esi, dword [edi + 4]
mov dword [esp + 0x10], 0
jne 0x41905f
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4e9d14], eax
lea edx, [esp + 0x10]
push edx
push 0
push esi
push 0x41b5c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
push 0x4380
call ebx
add esp, 4
test eax, eax
je 0x41909a
mov esi, eax
call fcn.00415680
jmp 0x41909c
xor eax, eax
mov dword [edi + 0x78], eax
test eax, eax
je 0x419224
mov ecx, dword [edi + 0x64]
mov dword [eax], ecx
mov edx, dword [edi + 0x78]
mov eax, dword [edi + 4]
mov dword [edx + 8], eax
mov ecx, dword [edi + 0x78]
mov edx, dword [edi + 0x68]
mov dword [ecx + 4], edx
mov eax, dword [edi + 0x78]
push 0x4380
mov dword [eax + 0x10], 1
call ebx
add esp, 4
test eax, eax
je 0x4190e3
mov esi, eax
call fcn.00415680
mov dword [esp + 8], eax
jmp 0x4190eb
mov dword [esp + 8], 0
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 8]
push 0x4380
push ecx
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
cmp dword [edi + 0x48], 0
je 0x4191d0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x4191d0
mov ebx, dword [eax + 0x3c]
test ebx, ebx
je 0x4191d0
push 0
push 0
push 0
push ebx
push 0x4a4bac
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ole32.dll_CoGetMarshalSizeMax]
test eax, eax
js 0x4191c8
mov ecx, dword [esp + 0xc]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4191c8
lea edx, [esp + 0x10]
push edx
push 1
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x4191c8
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push ebx
push 0x4a4bac
push eax
call dword [sym.imp.ole32.dll_CoMarshalInterface]
test eax, eax
js 0x4191c8
mov eax, dword [esp + 0xc]
cmp eax, 0x1000
jae 0x4191c8
mov ecx, dword [esp + 8]
push eax
push esi
mov dword [ecx + 0x389c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0xc]
push eax
add edx, 0x1014
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, dword [edi + 0x78]
test eax, eax
je 0x419217
mov ecx, 0x4b11cc
add eax, 0x3014
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x419207
test dx, dx
je 0x419203
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x419207
add eax, 4
add ecx, 4
test dx, dx
jne 0x4191e1
xor eax, eax
jmp 0x41920c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x419217
mov esi, edi
call fcn.0041a8e0
mov edx, dword [esp + 8]
push edx
call fcn.0041b050
add esp, 4
mov esi, dword [esp + 0x14]
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x3fffffff
or eax, 0x40000000
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [edi + 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_SetParent]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret