Function at 0x409a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp word [esi + 0x6e], 0
jne 0x409a50
mov eax, dword [esi + 0x7c]
mov cx, word [eax + 0x104]
test cx, cx
mov word [esi + 0x6e], cx
jne 0x409a50
push str.invalid_langid
push str._s_failed_n
push 0x471d20
call fcn.00415dff
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x409c6a
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x409c6a
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x409c6a
call fcn.0044d61a
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x409a90
call fcn.0044d61a
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x68]
call fcn.0044d61a
mov dword [eax + 0xc], edi
call fcn.0044d61a
mov ebx, dword [eax + 0xc]
test ebx, ebx
jne 0x409abc
mov edx, dword [esi + 0x60]
push edx
push str.Cound_not_find_dialog_resource_in_resource_chain_for_ID__d
push 8
push 0x471d20
call fcn.00401200
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ax, word [esi + 0x6e]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceExA]
xor ecx, ecx
push eax
mov cx, word [esi + 0x60]
push ecx
push 5
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x409b41
mov ax, word [esi + 0x6c]
xor edx, edx
mov dx, word [esi + 0x60]
and eax, 0x3ff
or ah, 4
push eax
push edx
push 5
push ebx
mov word [esi + 0x6e], ax
call ebp
mov edi, eax
test edi, edi
jne 0x409b41
mov ax, word [esi + 0x60]
push 0x400
push eax
push 5
push ebx
mov word [esi + 0x6e], 0x400
call ebp
mov edi, eax
test edi, edi
jne 0x409b41
mov edx, dword [esi + 0x7c]
xor ecx, ecx
mov cx, word [esi + 0x6e]
mov ax, word [edx + 0x104]
push ecx
mov ecx, dword [esi + 0x60]
push eax
push ecx
push str.Cound_not_find_dialog_ID__d_resource_by_LangIds__d_and__d
push 8
push 0x471d20
call fcn.00401200
add esp, 0x18
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esi + 0x64], eax
jne 0x409b5a
push str.Cound_not_load_dialog_template
jmp 0x409c53
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x409b73
push str.Cound_not_lock_dialog_template
jmp 0x409c53
cmp word [eax + 2], 0xffff
jne 0x409c4e
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x409b8d
or dword [eax + 8], 0x402000
mov dx, word [esi + 0x6e]
xor eax, eax
mov ax, word [esi + 0x60]
push edx
push eax
xor ebp, ebp
push 0xf0
push ebx
mov dword [esi + 0x68], ebp
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov edi, eax
test edi, edi
je 0x409bc4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esi + 0x68], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
push edi
push str.DLGINIT_p
push 0x20
push 0x471d20
call fcn.00401200
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x70]
push ebp
test eax, eax
je 0x409bfb
mov ecx, dword [esi + 0x78]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov ecx, esi
call fcn.00444608
jmp 0x409c0b
mov eax, dword [esi + 0x78]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0044435f
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
push eax
mov cx, word [esi + 0x6e]
push edi
mov edx, dword [esi + 0x78]
push ecx
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, edi
push ebp
neg ecx
sbb ecx, ecx
push edx
and ecx, 0x78
push eax
add ecx, 8
push str.Init_create_dialog_indirect_with___p___p___p__for_langid_d__0x_x_with_result__d_and_error__d_n
push ecx
push 0x471d20
call fcn.00401200
add esp, 0x28
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.Dialog_template_is_not_DIALOGEX._Please_change_it_for_RTL_language_compatibility.
push 8
push 0x471d20
call fcn.00401200
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret