Function at 0x54bcd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5e4788
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xe
push esi
push ebx
call ebp
test eax, eax
je 0x54bdac
cmp dword [esp + 0x48], 0
je 0x54bdac
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x54becf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x54becf
movzx edi, word [eax + 4]
sub edi, 1
js 0x54becf
lea ecx, [edi*8]
sub ecx, edi
lea esi, [eax + ecx*2 + 7]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
movzx edx, byte [esi - 1]
cmp edx, ecx
jne 0x54bd93
movzx edx, byte [esi]
cmp edx, eax
jne 0x54bd93
push 0
push eax
movzx eax, word [esi + 0xb]
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ebx
call fcn.0054bcd0
test eax, eax
jne 0x54bda2
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
dec edi
sub esi, 0xe
test edi, edi
jge 0x54bd65
xor eax, eax
jmp 0x54bf02
mov eax, 1
jmp 0x54bf02
push 3
push esi
push ebx
call ebp
mov esi, eax
test esi, esi
je 0x54becf
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x54becf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x54becf
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp word [ebp + 0xe], 0x20
jne 0x54bed3
lea ecx, [esp + 0x18]
call sub.mfc90u.dll_CDC::CDC
push 0
mov dword [esp + 0x34], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call sub.mfc90u.dll_CDC::Attach
push 0x34
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x54bebe
mov ecx, 0xa
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
cdq
sub eax, edx
sar eax, 1
imul ecx, eax
push 0
push 0
lea edx, [esp + 0x44]
push edx
add ecx, ecx
add ecx, ecx
push 0
mov dword [ebx + 8], eax
mov dword [ebx + 0x14], ecx
mov eax, dword [esp + 0x2c]
push ebx
push eax
mov dword [esp + 0x54], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x54beb4
test esi, esi
je 0x54beb4
mov ecx, dword [ebx + 0x14]
push ecx
add ebp, 0x28
push ebp
push eax
call fcn.0051b230
mov ecx, dword [esp + 0x20]
add esp, 0xc
push esi
call fcn.0054bc80
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.005df384
mov edi, dword [esp + 0x14]
jmp 0x54bef6
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.005df384
xor eax, eax
jmp 0x54bf02
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push 0
push edx
push ecx
push 0x30000
push 1
push eax
push ebp
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
push eax
mov ecx, edi
call fcn.0054bc40
mov ecx, edi
call fcn.00549d70
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x14