Function at 0x23a72870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x23bd29e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x23c68938]
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 0x23a7294c
cmp dword [esp + 0x48], 0
je 0x23a7294c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x23a72a6c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x23a72a6c
movzx edi, word [eax + 4]
sub edi, 1
js 0x23a72a6c
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 0x23a72933
movzx edx, byte [esi]
cmp edx, eax
jne 0x23a72933
push 0
push eax
movzx eax, word [esi + 0xb]
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ebx
call fcn.23a72870
test eax, eax
jne 0x23a72942
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
dec edi
sub esi, 0xe
test edi, edi
jge 0x23a72905
xor eax, eax
jmp 0x23a72a9f
mov eax, 1
jmp 0x23a72a9f
push 3
push esi
push ebx
call ebp
mov esi, eax
test esi, esi
je 0x23a72a6c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x23a72a6c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x23a72a6c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp word [ebp + 0xe], 0x20
jne 0x23a72a70
lea ecx, [esp + 0x18]
call fcn.23a382f6
push 0
mov dword [esp + 0x34], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call fcn.23a388fa
push 0x34
call fcn.23a4ae6a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x23a72a5b
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 0x23a72a52
test esi, esi
je 0x23a72a52
mov ecx, dword [ebx + 0x14]
push ecx
add ebp, 0x28
push ebp
push eax
call fcn.23a6ef60
mov ecx, dword [esp + 0x20]
add esp, 0xc
push esi
call fcn.23a72820
push ebx
call fcn.23a4accd
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.23a38979
mov edi, dword [esp + 0x14]
jmp 0x23a72a93
push ebx
call fcn.23a4accd
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.23a38979
xor eax, eax
jmp 0x23a72a9f
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.23a727e0
mov ecx, edi
call fcn.23a705a0
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