Function at 0x442370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
lea edi, [ebp - 0x4c]
mov ecx, 0x13
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], 0
jne 0x4423a1
push 0x398
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
call fcn.004057f9
test eax, eax
je 0x4423a1
int3
call fcn.0046e7f0
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.00710bc0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x442448
cmp dword [ebp + 8], 0xffff
jbe 0x442407
mov eax, dword [ebp + 8]
push eax
push str.ERROR:_Cannot_find_dialog_template_named__Ts._n
push 0
mov ecx, 0x83519c
call fcn.00409820
push eax
push 0x39e
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea ecx, [ebp - 0x1c]
call fcn.00406250
push eax
call fcn.00405888
add esp, 0x14
jmp 0x442441
mov ecx, dword [ebp + 8]
and ecx, 0xffff
movzx edx, cx
push edx
push str.ERROR:_Cannot_find_dialog_template_with_IDD_0x_04X._n
push 0
mov ecx, 0x83519c
call fcn.00409820
push eax
push 0x3a1
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea ecx, [ebp - 0x24]
call fcn.00406250
push eax
call fcn.00405888
add esp, 0x14
xor eax, eax
jmp 0x442614
cmp dword [ebp + 0xc], 0
jne 0x442458
mov eax, 1
jmp 0x442614
mov esi, esp
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp esi, esp
call fcn.00710bc0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4424af
push str.Warning:_LoadResource_failed_for_dialog_template._n
push 0
mov ecx, 0x83519c
call fcn.00409820
push eax
push 0x3ae
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea ecx, [ebp - 0x2c]
call fcn.00406250
push eax
call fcn.00405888
add esp, 0x10
mov eax, 1
jmp 0x442614
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp esi, esp
call fcn.00710bc0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 2]
cmp ecx, 0xffff
jne 0x4424df
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x4424e7
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00419da0
mov esi, esp
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp esi, esp
call fcn.00710bc0
mov edx, dword [ebp - 0x14]
and edx, 0x10000000
je 0x44258b
cmp dword [ebp + 8], 0xffff
jbe 0x44254a
mov eax, dword [ebp + 8]
push eax
push str.ERROR:_Dialog_named__Ts_must_be_invisible._n
push 0
mov ecx, 0x83519c
call fcn.00409820
push eax
push 0x3be
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea ecx, [ebp - 0x34]
call fcn.00406250
push eax
call fcn.00405888
add esp, 0x14
jmp 0x442584
mov ecx, dword [ebp + 8]
and ecx, 0xffff
movzx edx, cx
push edx
push str.ERROR:_Dialog_with_IDD_0x_04X_must_be_invisible._n
push 0
mov ecx, 0x83519c
call fcn.00409820
push eax
push 0x3c1
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea ecx, [ebp - 0x3c]
call fcn.00406250
push eax
call fcn.00405888
add esp, 0x14
xor eax, eax
jmp 0x442614
mov eax, dword [ebp - 0x14]
and eax, 0x40000000
jne 0x44260f
cmp dword [ebp + 8], 0xffff
jbe 0x4425d1
mov ecx, dword [ebp + 8]
push ecx
push str.ERROR:_Dialog_named__Ts_must_have_the_child_style._n
push 0
mov ecx, 0x83519c
call fcn.00409820
push eax
push 0x3c8
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea ecx, [ebp - 0x44]
call fcn.00406250
push eax
call fcn.00405888
add esp, 0x14
jmp 0x44260b
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, 0x83519c
call fcn.00409820
push eax
push 0x3cb
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea ecx, [ebp - 0x4c]
call fcn.00406250
push eax
call fcn.00405888
add esp, 0x14
xor eax, eax
jmp 0x442614
mov eax, 1
pop edi
pop esi
add esp, 0x4c
cmp ebp, esp
call fcn.00710bc0
mov esp, ebp
pop ebp
ret 8