Function at 0x402940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409ef3
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x454
mov eax, dword [0x40d018]
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 - 0x464], ecx
call fcn.004011e0
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x3c]
call fcn.00407170
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x464]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403110
lea ecx, [ebp - 0x448]
call fcn.00407170
mov byte [ebp - 4], 1
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401240
add esp, 8
mov dword [ebp - 0x18], eax
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 0x4029e8
call fcn.00401550
mov dword [ebp - 0x454], eax
jmp 0x402b62
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 0x402a19
call fcn.00401550
mov dword [ebp - 0x454], eax
jmp 0x402b62
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 0x402a49
call fcn.00401550
mov dword [ebp - 0x454], eax
jmp 0x402b62
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 0x402aa4
mov dword [ebp - 0x45c], 0x8007000e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x448]
call fcn.00406e80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406ab0
mov eax, dword [ebp - 0x45c]
jmp 0x402ba2
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
add eax, 1
push eax
lea ecx, [ebp - 0x448]
call fcn.00406ea0
jmp 0x402ac9
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x448]
call fcn.00406ed0
test eax, eax
jne 0x402aeb
mov dword [ebp - 0x454], 0x8007000e
jmp 0x402b62
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x448]
call fcn.00406ed0
push eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0
call fcn.004011e0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0
jne 0x402b2d
call fcn.00401550
mov dword [ebp - 0x454], eax
jmp 0x402b62
lea ecx, [ebp - 0x448]
call fcn.00406ed0
xor ecx, ecx
mov edx, dword [ebp - 0x44c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x448]
call fcn.00406ed0
push eax
lea ecx, [ebp - 0x28]
call fcn.00403f40
mov dword [ebp - 0x454], eax
cmp dword [ebp - 0x20], 0
je 0x402b72
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x454]
mov dword [ebp - 0x460], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x448]
call fcn.00406e80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406ab0
mov eax, dword [ebp - 0x460]
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.00407458
mov esp, ebp
pop ebp
ret 0x10