Function at 0x4052d0
Capabilities:
Create process on windows
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x539d08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x589c40]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x98]
test eax, eax
jne 0x405330
push 1
mov dword [edi + 0x98], 1
call fcn.004043f0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x405498
call fcn.0041c284
mov ebx, dword [eax + 8]
call fcn.0041ced4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40535b
push 0x80004005
call fcn.0040ab10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x567f70
push 0x56814c
push ebx
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4053bc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp dword [esp + 0x10], 0
je 0x4053bc
test eax, eax
je 0x4053bc
push eax
lea ecx, [esp + 0x18]
push str._sPlaza
push ecx
call fcn.0040a810
add esp, 0xc
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
je 0x40542e
push 0
push esi
call dword [sym.imp.USER32.dll_FindWindowW]
push eax
call fcn.00416791
test eax, eax
je 0x40542e
push 0x41
push 0x5684e8
push 0x5684f0
mov ecx, edi
call fcn.00415cb0
cmp eax, 1
jne 0x40547c
lea ecx, [esp + 0x10]
call fcn.0040ab80
lea edx, [esp + 0x10]
push edx
lea ecx, [edi + 0x410]
mov byte [esp + 0x2c], 1
call fcn.00418428
mov eax, dword [esp + 0x10]
push eax
call fcn.00408350
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.0040aaf0
push 1
mov ecx, edi
mov dword [edi + 0x98], 2
call fcn.004043f0
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405582
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x14]
call fcn.0040aaf0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4054c1
push 1
mov dword [edi + 0x98], 3
call fcn.004043f0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x405582
call fcn.0041c284
cmp dword [edi + 0x674], 1
mov ebx, dword [eax + 8]
jne 0x40554d
push 0x567f70
push 0x568554
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40554d
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
lea edi, [esp + 0x18]
call fcn.00408000
add esp, 4
test eax, eax
je 0x405549
lea ecx, [esp + 0x14]
call fcn.0040ab80
mov dword [esp + 0x28], 2
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push 0x567f8c
push eax
call fcn.0040a810
mov esi, dword [esp + 0x20]
add esp, 0xc
call fcn.00404a60
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040aaf0
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x620], 1
jne 0x405576
mov eax, dword [edi + 0x680]
cmp dword [eax - 0xc], 0
je 0x405576
push 5
push 0
push 0
push eax
push 0x568560
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [edi]
mov eax, dword [edx + 0x17c]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret