Function at 0x10018580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0xa
mov dword [ebp - 0x1c], 3
xor eax, eax
je 0x100185cb
jmp 0x100185c5
mov dword [ebp - 0x10], 0
jmp 0x100185dd
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 2
jae 0x1001861e
push 0x32
push 0x1e
push 0x100394fc
call fcn.100156d0
add esp, 0xc
imul eax, dword [0x100392ec]
mov edx, dword [ebp - 0x10]
add eax, dword [ebp + edx*4 - 0x20]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1001861c
jmp 0x1001861e
jmp 0x100185d4
cmp dword [ebp - 0x18], 0
jne 0x10018640
xor edx, edx
je 0x1001862a
jmp 0x10018624
cmp dword [ebp + 0x1c], 0
je 0x10018639
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0xffffffff
xor eax, eax
jmp 0x1001879f
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
xor eax, eax
je 0x10018657
jmp 0x10018651
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1001868a
xor eax, eax
je 0x10018674
jmp 0x1001866e
cmp dword [ebp + 0x1c], 0
je 0x10018683
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0xfffffffe
xor eax, eax
jmp 0x1001879f
mov edx, dword [ebp + 0x14]
and edx, 1
je 0x10018746
mov eax, dword [ebp + 0x14]
and eax, 2
neg eax
sbb eax, eax
and eax, 4
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10017ad0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100186db
xor ecx, ecx
je 0x100186c7
jmp 0x100186c1
cmp dword [ebp + 0x1c], 0
je 0x100186d6
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0xfffffffd
jmp 0x10018789
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x428]
mov dword [ebp - 8], ecx
xor edx, edx
je 0x100186ed
jmp 0x100186e7
mov eax, dword [ebp - 8]
add eax, 1
push eax
call fcn.10013960
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001871c
xor ecx, ecx
je 0x1001870b
jmp 0x10018705
cmp dword [ebp + 0x1c], 0
je 0x1001871a
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0xfffffffc
jmp 0x10018789
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x424]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.10013ac0
add esp, 0xc
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.100180d0
add esp, 8
jmp 0x10018776
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10013a00
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10018776
xor ecx, ecx
je 0x10018765
jmp 0x1001875f
cmp dword [ebp + 0x1c], 0
je 0x10018774
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0xfffffffb
jmp 0x10018789
cmp dword [ebp + 0x10], 0
je 0x10018784
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
jmp 0x1001879f
cmp dword [ebp - 0x24], 0
je 0x1001879d
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100180d0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret