Function at 0x4104d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e52e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x51f620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004626df
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.00465bda
mov ebx, eax
test ebx, ebx
je 0x4105af
call fcn.00450641
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410535
push 0x80004005
call fcn.004071f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
push 0x65
mov dword [ebp - 4], 0
call fcn.00450a64
test eax, eax
je 0x410564
push 0x65
push eax
lea ecx, [ebp - 0x10]
call fcn.00408c00
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
je 0x41058c
mov ecx, dword [ebx + 4]
push 0
push 0
push 0x800
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov edx, dword [ebx + 4]
push edi
push 0x10
push 0
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4105af
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push ecx
call edi
mov eax, dword [esi + 0x74]
mov edx, dword [esi + 0x20]
push eax
push 0
push 0x80
push edx
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
push 0x402270
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esi + 0x20]
mov dword [0x529908], eax
call fcn.00450641
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410613
push 0x80004005
call fcn.004071f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 1
mov ecx, dword [0x52990c]
call fcn.00449e50
push esi
mov ebx, eax
call fcn.00423ac0
push esi
lea ecx, [ebp - 0x18]
call fcn.00423df0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4106eb
push eax
push 0x511810
lea edi, [ebp - 0x10]
call fcn.00408dd0
mov ecx, dword [ebp - 0x10]
add esp, 8
push 0x10
add ebx, 0x18
push ebx
push ecx
mov ecx, esi
call fcn.0045b477
mov ecx, edi
call fcn.00408e20
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4106dd
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41069c
mov ecx, esi
call fcn.0045c5ba
mov ecx, esi
call fcn.004623b6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4106c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
call fcn.0042c8f0
push 0
call fcn.0047002e
mov ecx, esi
call fcn.00421f20
test eax, eax
jne 0x410707
call fcn.0042cde0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x10]
jmp 0x4106b0
mov eax, dword [esi + 0x78]
xor ebx, ebx
cmp eax, ebx
je 0x41071c
push eax
call fcn.0046f030
add esp, 4
mov dword [esi + 0x78], ebx
mov eax, dword [esi + 0x80]
mov dword [esi + 0x7c], ebx
cmp eax, ebx
je 0x410738
push eax
call fcn.0045024c
add esp, 4
mov dword [esi + 0x80], ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x14]
push ecx
push 0x513098
push 0x17
push ebx
push 0x4ece4c
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x410773
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x38]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.004228d0
mov ecx, dword [0x529de4]
push ebx
call fcn.00449e50
xor eax, 0x5d9507e
push eax
mov ecx, esi
call fcn.0042dc00
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4107ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret