Function at 0x405130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x523060]
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 ebx, ecx
mov edi, dword [ebp + 8]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp word [edi], 0
jne 0x405172
xor ecx, ecx
jmp 0x405186
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405177
sub ecx, edx
sar ecx, 1
push ecx
lea esi, [ebx + 4]
push edi
mov ecx, esi
call fcn.00401d60
cmp dword [esi + 0x14], 8
jb 0x40519c
mov ecx, dword [esi]
jmp 0x40519e
mov ecx, esi
mov eax, dword [esi + 0x10]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x4051cf
lea ecx, [eax - 1]
cmp eax, ecx
jae 0x4051ba
push str.invalid_string_position
call fcn.0040ab56
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ecx
jb 0x4051c7
mov eax, dword [esi]
jmp 0x4051c9
mov eax, esi
xor edx, edx
mov word [eax + ecx*2], dx
cmp dword [esi + 0x14], 8
jb 0x4051d9
mov ecx, dword [esi]
jmp 0x4051db
mov ecx, esi
call fcn.00409c50
cmp eax, 1
je 0x405201
push 1
push 0x51314c
mov ecx, esi
call fcn.004068f0
push 4
push 0x513150
mov ecx, eax
call fcn.004068f0
cmp dword [esi + 0x14], 8
jb 0x40520b
mov ecx, dword [esi]
jmp 0x40520d
mov ecx, esi
call fcn.0040a6f0
cmp dword [esi + 0x14], 8
jb 0x40521c
mov ecx, dword [esi]
jmp 0x40521e
mov ecx, esi
mov eax, dword [esi + 0x10]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x405237
push 1
push 0x51314c
mov ecx, esi
call fcn.004068f0
push 0
mov ecx, ebx
call fcn.00405b60
push 0
mov byte [ebp - 0x5d], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x5130f0
push 0x84
push eax
mov dword [ebp - 0x64], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x405279
mov dword [ebp - 0x64], eax
jmp 0x4052b2
push edi
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x68], eax
push edi
test eax, eax
jne 0x40529a
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x64], 0
jmp 0x4052b2
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x64], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x51315c
push 0x83
push eax
mov dword [ebp - 0x68], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x405307
push edi
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x74], eax
push edi
test eax, eax
jne 0x4052f0
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor edi, edi
jmp 0x405307
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x74]
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp dword [ebp - 0x64], 0
je 0x4053bc
cmp dword [ebp - 0x6c], 0
je 0x4053bc
test edi, edi
je 0x4053bc
cmp dword [ebp - 0x70], 0
je 0x4053bc
push 0x48
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.004c29b0
add esp, 0xc
lea ecx, [ebp - 0x5c]
push edi
call fcn.004016c0
sub esp, 0x28
mov dword [ebp - 4], 0
mov al, byte [ebp - 0x80]
mov ecx, esp
push 0x64
mov dword [ecx], vtable.std::_Func_base_void__int_.0
mov dword [ecx], vtable.._AV___Func_impl_V___Binder_U_Unforced_std__P8CInstallCtrl__AEXH_ZQAV3_ABU___Ph__00_2__std__V__allocator_H_2_XH_std__.0
mov dword [ecx + 4], 0x405b40
mov byte [ecx + 8], al
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x24], ecx
lea ecx, [ebp - 0x5c]
push 0
call fcn.004017e0
cmp dword [esi + 0x14], 8
jb 0x405385
mov esi, dword [esi]
push esi
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x64]
call fcn.00401860
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x5d], al
mov dword [ebp - 4], 0xffffffff
call fcn.00401770
cmp byte [ebp - 0x5d], 0
je 0x4053bc
push 1
mov ecx, ebx
call fcn.00405b60
mov ecx, ebx
call fcn.004065e0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x4053dc
movzx eax, byte [ebp - 0x5d]
push 0
push eax
push 0x402
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
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.0041141b
mov esp, ebp
pop ebp
ret 4