Function at 0x40d320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447b80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push ebx
push esi
mov edx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov ecx, 0xf2
xor eax, eax
xor esi, esi
rep stosd dword es:[edi], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], esp
cmp eax, esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
je 0x40d380
mov eax, dword [ebp + 8]
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x14], eax
or ebx, 0xffffffff
jmp 0x40d3e3
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x14f]
mov byte [ebp - 0x150], 0
rep stosd dword es:[edi], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x150]
stosw word es:[edi], ax
push 0x104
or ebx, 0xffffffff
push ecx
push ebx
push edx
stosb byte es:[edi], al
call fcn.004012da
add esp, 0x10
cmp eax, esi
jne 0x40d3d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push 0x44dbf8
push eax
call sub.MSVCRT.dll__CxxThrowException
push 2
lea ecx, [ebp - 0x150]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x40d3fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x48]
push 0x44dbf8
push edx
mov dword [ebp - 0x48], eax
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push 0x40d910
push 1
push 0x10
push edi
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
mov ecx, dword [ebp - 0x20]
push ecx
push 1
push 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
jne 0x40d475
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x714
je 0x40d456
cmp eax, 0x715
je 0x40d456
lea edx, [ebp - 0x28]
push 0x44dbf8
push edx
mov dword [ebp - 0x28], eax
call sub.MSVCRT.dll__CxxThrowException
push edi
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
mov eax, dword [ebp - 0x14]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x14]
push esi
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d4a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x44]
push 0x44dbf8
push edx
mov dword [ebp - 0x44], eax
call sub.MSVCRT.dll__CxxThrowException
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40d4cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push 0x44dbf8
push eax
call sub.MSVCRT.dll__CxxThrowException
add edi, esi
mov ecx, esi
push edi
mov dword [ebp + 8], edi
call fcn.004014f6
test eax, eax
jne 0x40d4ee
lea ecx, [ebp - 0x2c]
push 0x44dea8
push ecx
mov dword [ebp - 0x2c], ebx
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [ebp + 8]
mov ecx, esi
push edi
call fcn.004014d8
cmp word [esi + 2], 0xc
jb 0x40d508
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov dword [ecx], edx
cmp word [esi + 2], 0x10
jb 0x40d518
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], edx
push edi
mov ecx, esi
call fcn.004013f2
mov esi, eax
push edi
mov ecx, esi
call fcn.004015eb
test eax, eax
jne 0x40d53f
lea ecx, [ebp - 0x30]
push 0x44dea8
push ecx
mov dword [ebp - 0x30], ebx
call sub.MSVCRT.dll__CxxThrowException
mov ecx, esi
call fcn.00401433
push str.StringFileInfo
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40d7b7
mov edi, dword [ebp + 8]
mov ecx, esi
push edi
call fcn.004013e8
mov esi, eax
push edi
mov ecx, esi
call fcn.004016c7
test eax, eax
jne 0x40d587
lea edx, [ebp - 0x38]
push 0x44dea8
push edx
mov dword [ebp - 0x38], ebx
call sub.MSVCRT.dll__CxxThrowException
push edi
mov ecx, esi
call fcn.004016d6
mov edi, eax
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.0040178f
test eax, eax
jne 0x40d5b1
lea ecx, [ebp - 0x40]
push 0x44dea8
push ecx
mov dword [ebp - 0x40], ebx
call sub.MSVCRT.dll__CxxThrowException
xor eax, eax
mov ax, word [esi]
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x40d7b7
mov edx, dword [ebp + 8]
mov ecx, edi
push edx
call fcn.0040178f
test eax, eax
je 0x40d7b7
mov eax, dword [ebp + 8]
mov ecx, edi
push eax
call fcn.00401825
and eax, 0xffff
mov ecx, edi
mov esi, eax
call fcn.0040135c
mov ebx, dword [sym.imp.MSVCRT.dll__wcsicmp]
push str.CompanyName
push eax
call ebx
add esp, 8
test eax, eax
jne 0x40d62c
test esi, esi
jbe 0x40d62c
cmp esi, 0x50
jb 0x40d610
mov esi, 0x4f
mov ecx, dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.0040150f
mov edx, dword [ebp + 0xc]
push esi
add edx, 0x288
push eax
push edx
jmp 0x40d75b
mov ecx, edi
call fcn.0040135c
push str.FileDescription
push eax
call ebx
add esp, 8
test eax, eax
jne 0x40d669
test esi, esi
jbe 0x40d669
cmp esi, 0x50
jb 0x40d650
mov esi, 0x4f
mov eax, dword [ebp + 8]
mov ecx, edi
push eax
call fcn.0040150f
mov ecx, dword [ebp + 0xc]
push esi
add ecx, 8
push eax
push ecx
jmp 0x40d75b
mov ecx, edi
call fcn.0040135c
push str.InternalName
push eax
call ebx
add esp, 8
test eax, eax
jne 0x40d6a7
test esi, esi
jbe 0x40d6a7
cmp esi, 0x50
jb 0x40d68d
mov esi, 0x4f
mov edx, dword [ebp + 8]
mov ecx, edi
push edx
call fcn.0040150f
push esi
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x148
jmp 0x40d75a
mov ecx, edi
call fcn.0040135c
push str.LegalCopyright
push eax
call ebx
add esp, 8
test eax, eax
jne 0x40d6e4
test esi, esi
jbe 0x40d6e4
cmp esi, 0x50
jb 0x40d6cb
mov esi, 0x4f
mov ecx, dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.0040150f
mov edx, dword [ebp + 0xc]
push esi
add edx, 0x328
push eax
push edx
jmp 0x40d75b
mov ecx, edi
call fcn.0040135c
push str.OriginalFilename
push eax
call ebx
add esp, 8
test eax, eax
jne 0x40d721
test esi, esi
jbe 0x40d721
cmp esi, 0x50
jb 0x40d708
mov esi, 0x4f
mov eax, dword [ebp + 8]
mov ecx, edi
push eax
call fcn.0040150f
mov ecx, dword [ebp + 0xc]
push esi
add ecx, 0xa8
push eax
push ecx
jmp 0x40d75b
mov ecx, edi
call fcn.0040135c
push 0x4543c0
push eax
call ebx
add esp, 8
test eax, eax
jne 0x40d764
test esi, esi
jbe 0x40d764
cmp esi, 0x50
jb 0x40d745
mov esi, 0x4f
mov edx, dword [ebp + 8]
mov ecx, edi
push edx
call fcn.0040150f
push esi
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x1e8
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov cx, word [edi]
add ecx, 3
and ecx, 0xfffffffc
sub eax, ecx
mov ecx, edi
mov dword [ebp - 0x1c], eax
call fcn.004010be
mov edi, eax
mov eax, dword [ebp - 0x1c]
jmp 0x40d5b9
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40d7c5
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8