Function at 0x54bdc4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x19c
mov eax, 0x591ec6
call fcn.004fb9d0
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, ecx
lea ecx, [ebp - 0x16c]
mov dword [esi + 4], eax
call fcn.0043479c
xor ebx, ebx
lea ecx, [esi + 8]
push eax
mov dword [ebp - 4], ebx
call fcn.00433c20
mov ecx, dword [ebp - 0x16c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004310e3
cmp edi, ebx
jne 0x54be32
push ebx
push dword [ebp + 0xc]
call fcn.0054aeca
mov edi, eax
push edi
call fcn.0042c900
push edi
mov dword [esi + 0x1c], eax
call fcn.004fc324
add esp, 0x10
jmp 0x54bf10
push edi
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
mov dword [ebp - 0x16c], edi
cmp edi, ebx
je 0x54bf10
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x54bf04
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [esi + 4]
mov dword [ebp - 0x168], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp - 0x168], ebx
je 0x54bf04
cmp eax, ebx
jbe 0x54bf04
push eax
push dword [ebp - 0x168]
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.0052aee0
lea eax, [ebp - 0x1a0]
push eax
call fcn.0042e840
lea eax, [ebp - 0x1a0]
push eax
push edi
mov dword [ebp - 0x1a0], 0x54af9b
mov dword [ebp - 0x19c], 0x54afa3
mov dword [ebp - 0x198], 0x54afc6
mov dword [ebp - 0x194], 0x54b00f
mov dword [ebp - 0x190], 0x54afe9
mov dword [ebp - 0x18c], 0x54b033
mov dword [ebp - 0x188], 0x54b051
mov dword [ebp - 0x184], ebx
call fcn.0042c830
add esp, 0xc
mov dword [esi + 0x1c], eax
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x1c], ebx
je 0x54c063
lea eax, [esi + 0x30]
push eax
mov dword [ebp - 0x170], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0x1c]
call fcn.0042d180
pop ecx
test eax, eax
jne 0x54c053
jmp 0x54bf3e
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0x104
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x164]
push eax
push dword [esi + 0x1c]
call fcn.0042d0b0
add esp, 0x20
cmp eax, ebx
jne 0x54c053
push dword [esi + 0x1c]
call fcn.0042e1c0
mov edi, dword [ebp - 0x148]
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x114]
push eax
call fcn.004fba80
inc eax
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00574729
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.0054af2e
add esp, 0x18
push eax
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x174], eax
call fcn.0043479c
lea ecx, [ebp - 0x168]
mov dword [ebp - 4], 1
call fcn.00433966
mov eax, dword [ebp - 0x168]
add eax, 0xfffffff0
push eax
call fcn.00431714
lea ebx, [eax + 0x10]
mov eax, dword [ebp - 0x16c]
pop ecx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x178], edi
push 0
lea eax, [ebp - 0x180]
push eax
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 2
call fcn.0054b831
push eax
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [esi + 0x20]
call fcn.0054bc50
lea ecx, [ebx - 0x10]
call fcn.004310e3
push dword [ebp - 0x174]
call fcn.004fc324
push dword [esi + 0x1c]
call fcn.0042d1f0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x168]
add ecx, 0xfffffff0
mov edi, eax
call fcn.004310e3
test edi, edi
je 0x54bf3c
push dword [ebp - 0x170]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x54c065
xor al, al
call fcn.004fba53
ret 0xc