Function at 0x4262d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x554c08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5b3940]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xe
push edi
push esi
call ebx
test eax, eax
je 0x4263c8
cmp dword [ebp + 0x18], 0
je 0x4263c8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4264e6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4264e6
movzx ebx, word [eax + 4]
sub ebx, 1
js 0x4264e6
lea ecx, [ebx*8]
sub ecx, ebx
lea edi, [eax + ecx*2 + 7]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
movzx edx, byte [edi - 1]
cmp edx, ecx
jne 0x42638f
movzx edx, byte [edi]
cmp edx, eax
jne 0x42638f
push 0
push eax
movzx eax, word [edi + 0xb]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push esi
call fcn.004262d0
test eax, eax
jne 0x4263ae
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
dec ebx
sub edi, 0xe
test ebx, ebx
jge 0x426363
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 3
push edi
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x4264e6
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4264e6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x4264e6
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp word [edi + 0xe], 0x20
jne 0x4264fd
lea ecx, [esp + 0x1c]
call fcn.004f4b7f
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0
call fcn.00410b70
push 0x34
call fcn.00511344
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4264d5
mov esi, edi
mov ecx, 0xa
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 + 0x1c]
push edx
add ecx, ecx
add ecx, ecx
push 0
mov dword [ebx + 8], eax
mov dword [ebx + 0x14], ecx
mov eax, dword [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [esp + 0x14]
mov esi, eax
test ecx, ecx
je 0x4264cc
test esi, esi
je 0x4264cc
mov eax, dword [ebx + 0x14]
mov edx, dword [esp + 0x18]
push eax
add edx, 0x28
push edx
push eax
push ecx
call fcn.0050bbc3
add esp, 0x10
push esi
mov esi, dword [esp + 0x14]
call fcn.004261b0
push ebx
call fcn.00511267
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004f5108
jmp 0x426520
push ebx
call fcn.00511267
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004f5108
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push 0
push ecx
push edx
push 0x30000
push 1
push eax
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov esi, dword [esp + 0x10]
push eax
call fcn.00426160
cmp dword [esi], 0
jne 0x426532
cmp dword [esi + 4], 0
jne 0x426532
mov eax, 1
jmp 0x426534
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14