Function at 0x1008c240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x10091040]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x14]
call fcn.1008a590
cmp dword [ebp + 8], 0
jne 0x1008c270
mov dword [ebp - 0x44], 0
jmp 0x1008c2a0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
call fcn.1008f1e0
mov dword [ebp - 0x48], esp
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.1008c6b0
mov dword [ebp - 0x44], eax
push 2
push 0
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1008c352
mov ecx, 1
test ecx, ecx
je 0x1008c2c6
jmp 0x1008c316
cmp dword [ebp + 8], 0
jne 0x1008c2d5
mov dword [ebp - 0x4c], 0
jmp 0x1008c305
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call fcn.1008f1e0
mov dword [ebp - 0x50], esp
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.1008c6b0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
push 0x10082328
call fcn.1008c4d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jg 0x1008c32d
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x54], edx
jmp 0x1008c342
mov eax, dword [ebp - 0x34]
and eax, 0xffff
or eax, 0x70000
or eax, 0x80000000
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x28], ecx
jmp 0x1008c49f
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1008c3c9
mov edx, 1
test edx, edx
je 0x1008c378
jmp 0x1008c38d
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x100822fc
call fcn.1008c4d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jg 0x1008c3a4
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x58], edx
jmp 0x1008c3b9
mov eax, dword [ebp - 0x38]
and eax, 0xffff
or eax, 0x70000
or eax, 0x80000000
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x28], ecx
jmp 0x1008c49f
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x1008c42e
mov ecx, 1
test ecx, ecx
je 0x1008c3eb
jmp 0x1008c3f8
push 0x100822e0
call fcn.1008c4d0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jg 0x1008c40f
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], edx
jmp 0x1008c424
mov eax, dword [ebp - 0x3c]
and eax, 0xffff
or eax, 0x70000
or eax, 0x80000000
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x28], ecx
jmp 0x1008c49f
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x1c]
movsx eax, byte [edx]
test eax, eax
je 0x1008c486
mov eax, dword [ebp - 0x1c]
add eax, 1
call fcn.1008f1e0
mov dword [ebp - 0x60], esp
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x1c]
mov byte [edx], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x14]
call fcn.1008bc90
mov dword [ebp - 0x28], eax
cmp dword [ebp - 8], 0
je 0x1008c4af
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x28]
lea esp, [ebp - 0x60]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.1008f0a6
mov esp, ebp
pop ebp
ret 0x10