Function at 0x5604a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x678af8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x71d5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0xe
push esi
push ebx
call edi
test eax, eax
je 0x560590
cmp dword [ebp + 0x18], 0
je 0x560590
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5606a4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x5606a4
movzx edi, word [eax + 4]
dec edi
js 0x5606a4
lea ecx, [edi*8]
sub ecx, edi
lea esi, [eax + ecx*2 + 7]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea esp, [esp]
movzx edx, byte [esi - 1]
cmp edx, ecx
jne 0x56055b
movzx edx, byte [esi]
cmp edx, eax
jne 0x56055b
push 0
push eax
movzx eax, word [esi + 0xb]
push ecx
mov ecx, dword [ebp - 0x10]
push eax
push ebx
call fcn.005604a0
test eax, eax
jne 0x560577
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
sub esi, 0xe
dec edi
jns 0x560530
xor eax, eax
mov ecx, dword [ebp - 0xc]
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 3
push esi
push ebx
call edi
mov edi, eax
test edi, edi
je 0x5606a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5606a4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x5606a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp word [esi + 0xe], 0x20
jne 0x5606ba
lea ecx, [ebp - 0x20]
call fcn.00413b77
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x20]
call fcn.00414282
push 0x34
call fcn.0050102f
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x560695
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, [ebp + 0xc]
push edx
add ecx, ecx
add ecx, ecx
push 0
mov dword [ebx + 8], eax
mov dword [ebx + 0x14], ecx
mov eax, dword [ebp - 0x1c]
push ebx
push eax
mov dword [ebp + 0xc], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x56068c
test esi, esi
je 0x56068c
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp + 8]
push ecx
add edx, 0x28
push edx
push eax
call fcn.0051e240
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push esi
call fcn.00560450
push ebx
call fcn.00500ff5
add esp, 4
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00414303
jmp 0x5606dc
push ebx
call fcn.00500ff5
add esp, 4
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00414303
xor eax, eax
mov ecx, dword [ebp - 0xc]
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 esi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00560410
mov ecx, dword [ebp - 0x10]
call fcn.0055e4e0
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14