Function at 0x10048820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10121648
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ecx
xor edi, edi
mov dword [ebp - 4], 0
push edi
push 0x1012ec60
mov dword [ebp - 0x1c], edi
call fcn.10024680
test ebx, ebx
je 0x10048870
mov dword [ebp - 0x18], ebx
jmp 0x10048882
push 3
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp - 0x18], eax
or ecx, 0xffffffff
test ebx, ebx
jne 0x10048890
xor edi, edi
jmp 0x100489e4
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
push 0x10048580
push 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov esi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x2c]
je 0x100489b0
jmp 0x100488c0
push 0x18
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1004898c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1004898c
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
test edx, edx
mov dword [ebp - 0x20], 0
push eax
cmovne ecx, edx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0xc]
push edi
push ebx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10048917
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
test edx, edx
je 0x1004898c
push eax
lea ecx, [ebp - 0x10]
call fcn.10045620
add esp, 4
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x10]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x10048949
lea eax, [ebp - 0x10]
push eax
call fcn.100244b0
jmp 0x10048967
push ecx
lea ecx, [edi - 0x10]
mov ebx, esp
call fcn.10024750
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
call fcn.100485d0
mov ebx, dword [ebp - 0x18]
add esp, 4
add edi, 0xfffffff0
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 1
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1004898c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
test eax, 0xffff0000
je 0x1004899e
push eax
call fcn.10103713
add esp, 4
add esi, 4
cmp esi, dword [ebp - 0x2c]
jne 0x100488c0
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x24], ebx
je 0x100489bf
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x100489e1
push esi
call fcn.1010338d
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10048a05
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret