Function at 0x4ac1b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4e05c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51f4f4]
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 0x4ac28c
cmp dword [esp + 0x48], 0
je 0x4ac28c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ac3ac
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4ac3ac
movzx edi, word [eax + 4]
sub edi, 1
js 0x4ac3ac
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 0x4ac273
movzx edx, byte [esi]
cmp edx, eax
jne 0x4ac273
push 0
push eax
movzx eax, word [esi + 0xb]
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ebx
call fcn.004ac1b0
test eax, eax
jne 0x4ac282
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
dec edi
sub esi, 0xe
test edi, edi
jge 0x4ac245
xor eax, eax
jmp 0x4ac3df
mov eax, 1
jmp 0x4ac3df
push 3
push esi
push ebx
call ebp
mov esi, eax
test esi, esi
je 0x4ac3ac
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ac3ac
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x4ac3ac
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp word [ebp + 0xe], 0x20
jne 0x4ac3b0
lea ecx, [esp + 0x18]
call fcn.0041f0d3
push 0
mov dword [esp + 0x34], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call fcn.0041f952
push 0x34
call fcn.004461fb
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4ac39b
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 0x4ac392
test esi, esi
je 0x4ac392
mov ecx, dword [ebx + 0x14]
push ecx
add ebp, 0x28
push ebp
push eax
call fcn.0049b060
mov ecx, dword [esp + 0x20]
add esp, 0xc
push esi
call fcn.004ac160
push ebx
call fcn.004460a4
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.0041f9d1
mov edi, dword [esp + 0x14]
jmp 0x4ac3d3
push ebx
call fcn.004460a4
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.0041f9d1
xor eax, eax
jmp 0x4ac3df
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.004ac120
mov ecx, edi
call fcn.004a93a0
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