Function at 0x474190
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 0x4741db
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 0x4741f7
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 0x474223
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 0x474223
xor eax, eax
jmp 0x47438d
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 0x474247
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.004bd210
add esp, 0xc
push 0x51c718
call fcn.004b8320
add esp, 4
push eax
push str.VspLanguagePack
mov ecx, dword [ebp - 0x18]
add ecx, 4
push ecx
call fcn.004bfeec
add esp, 0xc
test eax, eax
je 0x474289
xor eax, eax
jmp 0x47438d
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.004744b0
mov dword [ebp - 8], 0
jmp 0x4742b8
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 0x474382
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.004bd210
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.004bdff7
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.004b83b0
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.004bd210
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.00474440
jmp 0x4742af
mov eax, dword [ebp - 0x18]
mov byte [eax], 1
mov eax, 1
mov esp, ebp
pop ebp
ret 8