Function at 0x412220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0xa
mov esi, eax
push 0x65
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
je 0x4122a4
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4122a4
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4122a4
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
xor ebx, ebx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
test eax, eax
je 0x4122aa
mov ebx, eax
nop dword [eax + eax]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x1c]
mov edi, dword [esi + eax]
lea edx, [eax + 4]
push edi
add edx, esi
call fcn.00401000
add esp, 4
test eax, eax
jne 0x4122a4
add esi, 4
add esi, edi
cmp esi, ebx
jb 0x412280
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebx]
xor ecx, ecx
mov eax, dword [edi]
and esi, 0xfffffffe
mov dword [ebp - 8], eax
mov eax, esi
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00416e66
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x4122e8
push esi
push dword [ebp - 8]
push eax
call fcn.00415980
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov esi, dword [ebx + 4]
xor ecx, ecx
mov eax, dword [edi + 4]
and esi, 0xfffffffe
mov dword [ebp - 8], eax
mov eax, esi
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00416e66
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x412328
push esi
push dword [ebp - 8]
push eax
call fcn.00415980
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov eax, dword [edi + 8]
xor ecx, ecx
mov esi, dword [ebx + 8]
mov dword [ebp - 8], eax
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00416e66
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x412363
push esi
push dword [ebp - 8]
push eax
call fcn.00415980
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [eax + esi], 0
mov dword [0x533e08], esi
mov esi, dword [ebx + 0xc]
mov dword [0x533e04], eax
mov eax, dword [edi + 0xc]
push esi
mov dword [ebp - 8], eax
call fcn.00416e66
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x412397
push esi
push dword [ebp - 8]
push eax
call fcn.00415980
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [0x533e94], eax
xor ecx, ecx
mov eax, dword [edi + 0x10]
mov dword [0x533eb8], esi
mov eax, dword [eax]
mov dword [0x533da8], eax
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov dword [0x533e0c], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 4], eax
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00416e66
mov esi, eax
add esp, 4
test esi, esi
je 0x4123f3
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call fcn.00415980
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [esi + eax], 0
mov eax, dword [edi + 0x18]
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 4], eax
add eax, 1
mov dword [0x533eac], esi
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00416e66
mov esi, eax
add esp, 4
test esi, esi
je 0x412436
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call fcn.00415980
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [esi + eax], 0
mov eax, dword [edi + 0x20]
mov dword [0x533e1c], esi
xor esi, esi
mov eax, dword [eax]
mov dword [0x533db0], eax
mov eax, dword [edi + 0x24]
mov eax, dword [eax]
mov dword [0x533e20], eax
mov eax, dword [edi + 0x28]
mov eax, dword [eax]
mov dword [0x533e8c], eax
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
mov dword [0x533e44], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax]
mov dword [0x533e98], eax
mov eax, dword [edi + 0x34]
mov eax, dword [eax]
mov dword [0x533e84], eax
mov eax, dword [edi + 0x38]
mov eax, dword [eax]
mov dword [0x533e34], eax
cmp dword [ebp - 0x14], esi
jbe 0x4124b6
mov ebx, dword [ebp - 0x14]
nop dword [eax]
push dword [edi + esi*4]
call fcn.00416e4b
inc esi
add esp, 4
cmp esi, ebx
jb 0x412490
test ebx, ebx
mov ebx, dword [ebp - 0x18]
je 0x4124b6
push edi
call fcn.00416e4b
push ebx
call fcn.00416e4b
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret