Function at 0x1004d460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e0038
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1025f074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebp + 8], 0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], ecx
jne 0x1004d4a6
xor al, al
jmp 0x1004d6b2
lea esi, [ebx + 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
test esi, esi
je 0x1004d4ca
mov eax, dword [esi]
test eax, eax
je 0x1004d4ca
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 4], 0
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp eax, 1
jne 0x1004d504
cmp dword [ebx + 0x18], 0
je 0x1004d5af
push ecx
push edx
push dword [ebp + 8]
mov ecx, ebx
call fcn.1004dcb0
mov bl, al
test bl, bl
jne 0x1004d695
jmp 0x1004d5af
cmp eax, 2
jne 0x1004d5af
cmp dword [ebx + 0x28], 0
je 0x1004d5af
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1004d532
mov eax, dword [esi]
test eax, eax
je 0x1004d532
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1004d543
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
push ecx
movzx eax, ax
push eax
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1004d597
push eax
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1004d597
push dword [ebp - 0x1c]
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1004d597
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1004d655
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 4], 0
test esi, esi
je 0x1004d5af
mov eax, dword [esi]
test eax, eax
je 0x1004d5a8
push eax
call edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1004d5ca
mov eax, dword [esi]
test eax, eax
je 0x1004d5ca
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
call fcn.1000ec40
mov ebx, 0x10000000
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
cmovne ebx, eax
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x1004d5ed
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1004d61f
mov byte [ebp - 4], 0
test esi, esi
je 0x1004d61b
mov eax, dword [esi]
test eax, eax
je 0x1004d614
push eax
call edi
mov dword [ebp - 0x14], 0
xor bl, bl
jmp 0x1004d695
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1004d603
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1004d603
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1004d655
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1004d603
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
call fcn.1004e640
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [eax + 8]
call fcn.101b5ac0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 4], 0
test esi, esi
je 0x1004d693
mov eax, dword [esi]
test eax, eax
je 0x1004d68c
push eax
call edi
mov dword [ebp - 0x14], 0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1004d6b0
mov eax, dword [esi]
test eax, eax
je 0x1004d6a9
push eax
call edi
mov dword [ebp - 0x18], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b3122
mov esp, ebp
pop ebp
ret 0xc