Function at 0x402980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c573
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2484
call fcn.00406cd0
mov eax, dword [0x41112c]
xor eax, ebp
mov dword [ebp - 0x40], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2494], ecx
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2494]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x448], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
push 2
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x402a1c
call fcn.004020c0
mov dword [ebp - 0x454], eax
jmp 0x402b71
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jne 0x402a4d
call fcn.004020c0
mov dword [ebp - 0x454], eax
jmp 0x402b71
mov eax, dword [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x458], 0
jne 0x402a7d
call fcn.004020c0
mov dword [ebp - 0x454], eax
jmp 0x402b71
mov edx, dword [ebp - 0x450]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x458]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x2c]
add edx, 1
cmp edx, dword [ebp - 0x2c]
jae 0x402ab4
mov dword [ebp - 0x454], 0x8007000e
jmp 0x402b71
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
add eax, 1
push eax
lea ecx, [ebp - 0x448]
call 0x406210
jmp 0x402ad9
mov dword [ebp - 4], 1
cmp dword [ebp - 0x448], 0
jne 0x402af5
mov dword [ebp - 0x454], 0x8007000e
jmp 0x402b71
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0x46c], ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x46c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0
jne 0x402b3a
call fcn.004020c0
mov dword [ebp - 0x454], eax
jmp 0x402b71
xor eax, eax
mov ecx, dword [ebp - 0x44c]
mov edx, dword [ebp - 0x448]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x470], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x470]
push edx
lea ecx, [ebp - 0x28]
call fcn.00402d20
mov dword [ebp - 0x454], eax
cmp dword [ebp - 0x20], 0
je 0x402b81
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x454]
mov dword [ebp - 0x45c], ecx
mov byte [ebp - 4], 0
lea edx, [ebp - 0x444]
cmp dword [ebp - 0x448], edx
je 0x402baa
lea ecx, [ebp - 0x448]
call fcn.00406330
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x3c], 0
je 0x402bd9
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2490], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x2490]
push eax
call fcn.00406a3d
add esp, 4
jmp 0x402bb1
mov eax, dword [ebp - 0x45c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.0040657b
mov esp, ebp
pop ebp
ret 0x10