Function at 0x511750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574f85
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x210], 0
jne 0x511992
lea ecx, [ebp - 0x28]
call fcn.00406580
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x214]
mov dword [ebp - 0x5c], edx
cmp dword [ebp - 0x5c], 0
je 0x5117c6
cmp dword [ebp - 0x5c], 2
je 0x51186d
jmp 0x511904
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x58], 0
push str.SOFTINFO
push 0x57b1e8
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x511868
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x51185e
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x4c], 0
je 0x51185e
cmp dword [ebp - 0x58], 0
jbe 0x51185e
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e690
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x511904
mov dword [ebp - 0x94], 0
xor edx, edx
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], edx
mov ecx, dword [ebp - 0x44]
add ecx, 0x218
call fcn.004fc8b0
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], 0x1388
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [0x5bc878]
mov eax, dword [edx]
mov ecx, dword [0x5bc878]
mov edx, dword [eax + 0x1c]
call edx
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00424d90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004066b0
lea ecx, [ebp - 0x28]
call fcn.004066f0
add eax, 1
push eax
call fcn.0051d4c8
add esp, 4
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x54], edx
lea ecx, [ebp - 0x28]
call fcn.004066f0
add eax, 1
push eax
push 0
mov eax, dword [ebp - 0x54]
push eax
call fcn.005392b0
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.004066f0
push eax
lea ecx, [ebp - 0x28]
call fcn.004066e0
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.00538be0
add esp, 0xc
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x214]
push ecx
push 0x7e8
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x20c]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066b0
jmp 0x511992
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret