Function at 0x475840
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 0x47588b
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 0x4758a7
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 0x4758d3
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 0x4758d3
xor eax, eax
jmp 0x475a3d
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 0x4758f7
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.004bf1d0
add esp, 0xc
push 0x5317c0
call fcn.004ba1f0
add esp, 4
push eax
push str.VspLanguagePack
mov ecx, dword [ebp - 0x18]
add ecx, 4
push ecx
call fcn.004c1ebc
add esp, 0xc
test eax, eax
je 0x475939
xor eax, eax
jmp 0x475a3d
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.00475b60
mov dword [ebp - 8], 0
jmp 0x475968
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 0x475a32
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.004bf1d0
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.004bffb7
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.004ba280
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.004bf1d0
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.00475af0
jmp 0x47595f
mov eax, dword [ebp - 0x18]
mov byte [eax], 1
mov eax, 1
mov esp, ebp
pop ebp
ret 8