Function at 0x40e460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467dc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edx, ecx
mov dword [ebp - 0x184], edx
mov ecx, 0xf2
xor eax, eax
mov edi, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], 1
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp dword [edx + 4], ebx
je 0x40e4c0
push 2
push ebx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x40e529
mov byte [ebp - 0x144], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea ecx, [ebp - 0x144]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
call fcn.004012d5
add esp, 0x10
test eax, eax
jne 0x40e514
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x160], eax
push 0x46ee50
lea eax, [ebp - 0x160]
push eax
call sub.MSVCRT.dll__CxxThrowException
push 2
push ebx
lea ecx, [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x1c], eax
mov esi, eax
cmp esi, ebx
jne 0x40e54a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x164], eax
push 0x46ee50
lea edx, [ebp - 0x164]
push edx
call sub.MSVCRT.dll__CxxThrowException
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push 0x40eb20
push 1
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
mov ecx, dword [ebp - 0x2c]
push ecx
push 1
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
mov dword [ebp - 0x30], edi
cmp edi, ebx
jne 0x40e5c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x148], eax
cmp eax, 0x714
je 0x40e5aa
cmp eax, 0x715
je 0x40e5aa
mov dword [ebp - 0x168], eax
push 0x46ee50
lea edx, [ebp - 0x168]
push edx
call sub.MSVCRT.dll__CxxThrowException
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x38], ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x40e602
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x16c], eax
push 0x46ee50
lea eax, [ebp - 0x16c]
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x40e62f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x170], eax
push 0x46ee50
lea ecx, [ebp - 0x170]
push ecx
call sub.MSVCRT.dll__CxxThrowException
add ebx, edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], edi
push ebx
mov ecx, edi
call fcn.004014f6
test eax, eax
jne 0x40e65e
mov dword [ebp - 0x174], 0xffffffff
push 0x46f268
lea edx, [ebp - 0x174]
push edx
call sub.MSVCRT.dll__CxxThrowException
push ebx
mov ecx, edi
call fcn.004014d8
mov dword [ebp - 0x3c], eax
cmp word [edi + 2], 0xc
jb 0x40e678
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
cmp word [edi + 2], 0x10
jb 0x40e688
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
push ebx
mov ecx, edi
call fcn.004013ed
mov edi, eax
mov dword [ebp - 0x28], edi
push ebx
mov ecx, edi
call fcn.004015fa
test eax, eax
jne 0x40e6bc
mov dword [ebp - 0x178], 0xffffffff
push 0x46f268
lea edx, [ebp - 0x178]
push edx
call sub.MSVCRT.dll__CxxThrowException
push 0x477564
mov ecx, edi
call fcn.0040142e
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40e98e
push ebx
mov ecx, edi
call fcn.004013e3
mov esi, eax
mov dword [ebp - 0x14c], esi
push ebx
mov ecx, esi
call fcn.004016db
test eax, eax
jne 0x40e711
mov dword [ebp - 0x17c], 0xffffffff
push 0x46f268
lea eax, [ebp - 0x17c]
push eax
call sub.MSVCRT.dll__CxxThrowException
push ebx
mov ecx, esi
call fcn.004016ef
mov edi, eax
mov dword [ebp - 0x150], edi
push ebx
mov ecx, edi
call fcn.004017a8
test eax, eax
jne 0x40e748
mov dword [ebp - 0x180], 0xffffffff
push 0x46f268
lea ecx, [ebp - 0x180]
push ecx
call sub.MSVCRT.dll__CxxThrowException
xor eax, eax
mov ax, word [esi]
mov dword [ebp - 0x154], eax
test eax, eax
jle 0x40e98b
push ebx
mov ecx, edi
call fcn.004017a8
test eax, eax
je 0x40e98b
push ebx
mov ecx, edi
call fcn.00401843
mov si, ax
and esi, 0xffff
mov dword [ebp - 0x158], esi
push 0x477548
mov ecx, edi
call fcn.00401357
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40e7c9
test esi, esi
jbe 0x40e7c9
cmp esi, 0x50
jb 0x40e7b0
mov esi, 0x4f
mov dword [ebp - 0x158], esi
push esi
push ebx
mov ecx, edi
call fcn.0040150f
push eax
mov edx, dword [ebp + 0xc]
add edx, 0x288
push edx
jmp 0x40e91f
push 0x477520
mov ecx, edi
call fcn.00401357
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40e80d
test esi, esi
jbe 0x40e80d
cmp esi, 0x50
jb 0x40e7f7
mov esi, 0x4f
mov dword [ebp - 0x158], esi
push esi
push ebx
mov ecx, edi
call fcn.0040150f
push eax
mov eax, dword [ebp + 0xc]
add eax, 8
push eax
jmp 0x40e91f
push 0x477500
mov ecx, edi
call fcn.00401357
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40e853
test esi, esi
jbe 0x40e853
cmp esi, 0x50
jb 0x40e83b
mov esi, 0x4f
mov dword [ebp - 0x158], esi
push esi
push ebx
mov ecx, edi
call fcn.0040150f
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x148
jmp 0x40e91e
push 0x4774dc
mov ecx, edi
call fcn.00401357
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40e89a
test esi, esi
jbe 0x40e89a
cmp esi, 0x50
jb 0x40e881
mov esi, 0x4f
mov dword [ebp - 0x158], esi
push esi
push ebx
mov ecx, edi
call fcn.0040150f
push eax
mov edx, dword [ebp + 0xc]
add edx, 0x328
push edx
jmp 0x40e91f
push 0x4774b4
mov ecx, edi
call fcn.00401357
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40e8dd
test esi, esi
jbe 0x40e8dd
cmp esi, 0x50
jb 0x40e8c8
mov esi, 0x4f
mov dword [ebp - 0x158], esi
push esi
push ebx
mov ecx, edi
call fcn.0040150f
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xa8
push eax
jmp 0x40e91f
push 0x477498
mov ecx, edi
call fcn.00401357
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40e928
test esi, esi
jbe 0x40e928
cmp esi, 0x50
jb 0x40e90b
mov esi, 0x4f
mov dword [ebp - 0x158], esi
push esi
push ebx
mov ecx, edi
call fcn.0040150f
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x1e8
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
xor edx, edx
mov dx, word [edi]
add edx, 3
and edx, 0xfffffffc
sub dword [ebp - 0x154], edx
mov ecx, edi
call fcn.004010af
mov edi, eax
mov dword [ebp - 0x150], edi
mov eax, dword [ebp - 0x154]
jmp 0x40e753
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40e9a0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8