Function at 0x40d666
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xd8
mov eax, 0x4a0a82
call fcn.00481105
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0x98]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040d19f
push 0x4bcbf8
push 0x83
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x40d78a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xd4], eax
cmp edi, ebx
je 0x40d78a
cmp eax, ebx
je 0x40d78a
push eax
push edi
call fcn.0040ea92
mov esi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00479152
push dword [ebp - 0xd4]
mov ebx, eax
push edi
call fcn.0040ea92
add esp, 0x14
push esi
push ebx
lea esi, [ebp - 0x2c]
call fcn.0040dac0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40d720
mov eax, esi
push eax
lea esi, [ebp - 0x98]
call fcn.0040e277
push ebx
test al, al
jne 0x40d749
call fcn.0047af65
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402a5a
mov byte [ebp - 4], 0
jmp 0x40d78d
call fcn.0047af65
xor ebx, ebx
mov eax, esp
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x4c], ebx
lea esi, [ebp - 0x98]
mov dword [ebp - 0xd4], esp
mov dword [eax], str.Lang
call fcn.0040e5e7
cmp al, bl
jne 0x40d7ae
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402a5a
mov byte [ebp - 4], bl
lea eax, [ebp - 0x98]
push eax
call fcn.0040d1f0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402a23
xor eax, eax
call fcn.00481188
ret 8
lea eax, [ebp - 0x98]
call fcn.0040ec5c
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402162
add eax, 0x10
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 3
call fcn.0040409f
push ecx
mov eax, esp
lea esi, [ebp - 0x98]
mov dword [ebp - 0xe0], esp
mov dword [eax], str.item
call fcn.0040e5e7
cmp al, bl
je 0x40d8ee
push ecx
mov eax, esp
mov dword [eax], str.name
lea ecx, [ebp - 0xb4]
mov eax, esi
mov dword [ebp - 0xe0], esp
call fcn.0040d24f
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x40d826
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.004025df
push ebx
push 1
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 6
call fcn.00402a5a
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x98]
call fcn.0040d235
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x40d863
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.004025df
push ebx
push 1
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 9
call fcn.00402a5a
lea eax, [ebp - 0xdc]
push eax
mov ecx, str.wondershare
call fcn.00404382
test eax, eax
je 0x40d8ab
push dword [ebp + 0xc]
lea eax, [ebp - 0xd8]
push 0x4bcc3c
push eax
call fcn.00403ed9
push dword [ebp - 0xe4]
lea ecx, [ebp - 0xd4]
call fcn.0040db11
mov edi, eax
lea eax, [ebp - 0xd8]
call fcn.00401dea
mov eax, dword [ebp - 0xd8]
add eax, 0xfffffff0
call fcn.00402a23
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xd4]
add eax, 0xfffffff0
call fcn.00402a23
jmp 0x40d7dc
lea eax, [ebp - 0x98]
call fcn.0040ec8e
mov eax, dword [ebp - 0xdc]
add eax, 0xfffffff0
call fcn.00402a23
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402a5a
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], bl
call fcn.0040d1f0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402a23
xor eax, eax
inc eax
jmp 0x40d7a6