Function at 0x40e110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67379b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x730b1c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x420], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x40e1eb
push 2
push eax
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], eax
test edi, edi
jne 0x40e1eb
push dword [ebp - 0x428]
mov dword [ebp - 0x424], str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30037_atlmfcinclude_statreg.h
push str.Failed_to_LoadLibrary_on__Ts_n
push eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x420], 0x1d9
push 8
push eax
call fcn.0040af50
add esp, 0x14
call fcn.0040be50
mov ebx, eax
jmp 0x40e3b2
push dword [ebp - 0x41c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40e24f
push dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x42c]
mov edx, str.Failed_to_FindResource_on_ID:_Ts_TYPE:_Ts_n
push ecx
shr ecx, 0x10
mov eax, str.Failed_to_FindResource_on_ID:_d_TYPE:_Ts_n
test ecx, ecx
mov dword [ebp - 0x424], str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30037_atlmfcinclude_statreg.h
mov dword [ebp - 0x420], 0x1e2
cmovne eax, edx
push eax
push ebx
lea eax, [ebp - 0x424]
push 8
push eax
call fcn.0040af50
add esp, 0x18
call fcn.0040be50
jmp 0x40e3a5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
jne 0x40e296
push str.Failed_to_LoadResource_n
push eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30037_atlmfcinclude_statreg.h
push 8
push eax
mov dword [ebp - 0x420], 0x1ed
call fcn.0040af50
add esp, 0x10
call fcn.0040be50
jmp 0x40e3a5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
lea ecx, [ebx + 1]
cmp ecx, ebx
jae 0x40e2b7
mov ebx, 0x8007000e
jmp 0x40e3a7
mov edx, 2
mov byte [ebp - 4], 2
call fcn.0040c550
cmp dword [ebp - 0x418], 0
mov dword [ebp - 0x41c], eax
je 0x40e300
push str.m_p__0
push 0x70d8fc
push 0
push 0x226
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30037_atlmfcinclude_atlalloc.h
push 2
call fcn.00619920
add esp, 0x18
cmp eax, 1
jne 0x40e2fa
int3
mov eax, dword [ebp - 0x41c]
cmp eax, 0x400
jbe 0x40e31c
push eax
lea ecx, [ebp - 0x418]
call fcn.0040be20
mov dword [ebp - 4], 1
jmp 0x40e350
lea eax, [ebp - 0x414]
mov dword [ebp - 4], 1
mov dword [ebp - 0x418], eax
jmp 0x40e350
cmp dword [ebp - 0x418], 0
jne 0x40e360
mov ebx, 0x8007000e
jmp 0x40e3a7
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x428]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40e385
call fcn.0040be50
jmp 0x40e3a5
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x438]
push dword [ebp - 0x418]
call fcn.0040df20
mov ebx, eax
test edi, edi
je 0x40e3b2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40e3cb
lea ecx, [ebp - 0x418]
call fcn.0040be00
test esi, esi
je 0x40e3df
nop
push esi
mov esi, dword [esi]
call fcn.00619ae0
add esp, 4
test esi, esi
jne 0x40e3d0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret 0x10