Function at 0x46a490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x46a4db
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x2f8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46a4f7
mov ecx, dword [ebp + 8]
push ecx
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46a523
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0x2f8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp dword [ebp - 4], 0
jne 0x46a523
xor eax, eax
jmp 0x46a68d
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x46a547
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
push 0x68
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
call fcn.004b8a70
add esp, 0xc
push 0x51bc8c
call fcn.004b9750
add esp, 4
push eax
push str.VspLanguagePack
mov ecx, dword [ebp - 0x18]
add ecx, 4
push ecx
call fcn.004bd0ac
add esp, 0xc
test eax, eax
je 0x46a589
xor eax, eax
jmp 0x46a68d
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x68]
mov dword [edx + 0x74], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x68
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x18]
call fcn.0046a7b0
mov dword [ebp - 8], 0
jmp 0x46a5b8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x68]
jae 0x46a682
push 8
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x6c]
mov eax, dword [ebp - 8]
lea ecx, [edx + eax*8]
push ecx
call fcn.004b8a70
add esp, 0xc
mov edx, dword [ebp - 0xc]
add edx, 8
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x6c]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*8]
add eax, 1
push eax
call fcn.004b7ec3
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x6c]
mov ecx, dword [ebp - 8]
mov dword [edx + ecx*8 + 4], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*8]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x6c]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*8 + 4]
push eax
call fcn.004b8df0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x6c]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x6c]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*8 + 4]
push eax
call fcn.004b8a70
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x6c]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [edx + eax*8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.0046a740
jmp 0x46a5af
mov eax, dword [ebp - 0x18]
mov byte [eax], 1
mov eax, 1
mov esp, ebp
pop ebp
ret 8