Function at 0x1004d6d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e1ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
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
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
test ecx, ecx
jne 0x1004d711
xor al, al
jmp 0x1004d905
lea esi, [ebx + 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
mov edx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
je 0x1004d73a
mov eax, dword [esi]
test eax, eax
je 0x1004d73a
push eax
call edx
mov ecx, dword [ebp + 8]
mov edx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp eax, 1
jne 0x1004d7de
cmp dword [ebx + 0x18], 0
je 0x1004d76e
push dword [ebp - 0x1c]
push ecx
mov ecx, ebx
call fcn.1004de60
mov bl, al
test bl, bl
jne 0x1004d8e8
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1004d789
mov eax, dword [esi]
test eax, eax
je 0x1004d789
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
call fcn.1000ec40
mov ebx, 0x10000000
push 0x1021a9c8
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
cmovne ebx, eax
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1004d87d
mov byte [ebp - 4], 0
test esi, esi
je 0x1004d7d7
mov eax, dword [esi]
test eax, eax
je 0x1004d7d0
push eax
call edi
mov dword [ebp - 0x14], 0
xor bl, bl
jmp 0x1004d8e8
cmp eax, 2
jne 0x1004d76e
cmp dword [ebx + 0x28], 0
je 0x1004d76e
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1004d800
mov eax, dword [esi]
test eax, eax
je 0x1004d800
push eax
call edx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push 0x1021a9c8
movzx eax, ax
push eax
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x1004d841
mov byte [ebp - 4], 0
test esi, esi
je 0x1004d76e
mov eax, dword [esi]
test eax, eax
je 0x1004d835
push eax
call edi
mov dword [ebp - 0x14], 0
jmp 0x1004d76e
push eax
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1004d820
push dword [ebp - 0x20]
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1004d820
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x1004d878
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1004d820
push dword [ebp - 0x24]
jmp 0x1004d8be
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1004d7bf
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1004d7bf
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x1004d8bb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1004d7bf
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.10009370
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 4], 0
test esi, esi
je 0x1004d8e6
mov eax, dword [esi]
test eax, eax
je 0x1004d8df
push eax
call edi
mov dword [ebp - 0x14], 0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1004d903
mov eax, dword [esi]
test eax, eax
je 0x1004d8fc
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 8