Function at 0x4ef040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push esi
push edi
lea edi, [ebp - 0x84]
mov ecx, 0x21
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], 0
jne 0x4ef077
push 0x3ac
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFCdlgcore.cpp
call fcn.004053b0
test eax, eax
je 0x4ef077
int3
call fcn.00490e20
mov dword [ebp - 4], eax
mov esi, esp
push 5
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp esi, esp
call fcn.00784930
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4ef139
cmp dword [ebp + 8], 0xffff
jbe 0x4ef0ed
push 0x3b2
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFCdlgcore.cpp
lea ecx, [ebp - 0x1c]
call fcn.00405460
mov dword [ebp - 0x50], eax
mov ecx, 0x888338
call fcn.0041c4b0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
push eax
push str.ERROR:_Cannot_find_dialog_template_named__Ts._n
push 0
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.0040bcd0
add esp, 0x14
jmp 0x4ef132
push 0x3b5
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFCdlgcore.cpp
lea ecx, [ebp - 0x24]
call fcn.00405460
mov dword [ebp - 0x58], eax
mov ecx, 0x888338
call fcn.0041c4b0
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
and eax, 0xffff
movzx ecx, ax
push ecx
push str.ERROR:_Cannot_find_dialog_template_with_IDD_0x_04X._n
push 0
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.0040bcd0
add esp, 0x14
xor eax, eax
jmp 0x4ef350
cmp dword [ebp + 0xc], 0
jne 0x4ef149
mov eax, 1
jmp 0x4ef350
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp esi, esp
call fcn.00784930
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4ef1ac
push 0x3c2
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFCdlgcore.cpp
lea ecx, [ebp - 0x2c]
call fcn.00405460
mov dword [ebp - 0x60], eax
mov ecx, 0x888338
call fcn.0041c4b0
mov dword [ebp - 0x64], eax
push str.Warning:_LoadResource_failed_for_dialog_template._n
push 0
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0040bcd0
add esp, 0x10
mov eax, 1
jmp 0x4ef350
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp esi, esp
call fcn.00784930
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 2]
cmp ecx, 0xffff
jne 0x4ef1dc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x4ef1e4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0043f800
mov esi, esp
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp esi, esp
call fcn.00784930
nop
mov edx, dword [ebp - 0x14]
and edx, 0x10000000
je 0x4ef2a4
cmp dword [ebp + 8], 0xffff
jbe 0x4ef258
push 0x3d2
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFCdlgcore.cpp
lea ecx, [ebp - 0x34]
call fcn.00405460
mov dword [ebp - 0x68], eax
mov ecx, 0x888338
call fcn.0041c4b0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 8]
push eax
push str.ERROR:_Dialog_named__Ts_must_be_invisible._n
push 0
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x68]
push edx
call fcn.0040bcd0
add esp, 0x14
jmp 0x4ef29d
push 0x3d5
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFCdlgcore.cpp
lea ecx, [ebp - 0x3c]
call fcn.00405460
mov dword [ebp - 0x70], eax
mov ecx, 0x888338
call fcn.0041c4b0
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 8]
and eax, 0xffff
movzx ecx, ax
push ecx
push str.ERROR:_Dialog_with_IDD_0x_04X_must_be_invisible._n
push 0
mov edx, dword [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x70]
push eax
call fcn.0040bcd0
add esp, 0x14
xor eax, eax
jmp 0x4ef350
mov ecx, dword [ebp - 0x14]
and ecx, 0x40000000
jne 0x4ef34b
cmp dword [ebp + 8], 0xffff
jbe 0x4ef2fb
push 0x3dc
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFCdlgcore.cpp
lea ecx, [ebp - 0x44]
call fcn.00405460
mov dword [ebp - 0x78], eax
mov ecx, 0x888338
call fcn.0041c4b0
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp + 8]
push edx
push str.ERROR:_Dialog_named__Ts_must_have_the_child_style._n
push 0
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.0040bcd0
add esp, 0x14
jmp 0x4ef347
push 0x3df
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFCdlgcore.cpp
lea ecx, [ebp - 0x4c]
call fcn.00405460
mov dword [ebp - 0x80], eax
mov ecx, 0x888338
call fcn.0041c4b0
mov dword [ebp - 0x84], eax
mov edx, dword [ebp + 8]
and edx, 0xffff
movzx eax, dx
push eax
push str.ERROR:_Dialog_with_IDD_0x_04X_must_have_the_child_style._n
push 0
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x80]
push edx
call fcn.0040bcd0
add esp, 0x14
xor eax, eax
jmp 0x4ef350
mov eax, 1
pop edi
pop esi
add esp, 0x84
cmp ebp, esp
call fcn.00784930
mov esp, ebp
pop ebp
ret 8