Function at 0x40e4a0
Capabilities:
Extract resource via kernel32 functions
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
push 0x41c65c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.WM_ATLGETHOST
call esi
push str.WM_ATLGETCONTROL
mov dword [0x41c5ec], eax
call esi
lea ecx, [esp + 0x3c]
mov dword [0x41c5e8], eax
mov eax, dword [0x41c62c]
push ecx
mov esi, 0x30
push str.AtlAxWin
push eax
mov dword [esp + 0x48], esi
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
jne 0x40e54e
mov edx, dword [0x41c62c]
mov dword [esp + 0x3c], esi
xor esi, esi
push 0x7f00
push esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], 0x40e290
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x5c], 6
mov dword [esp + 0x60], esi
mov dword [esp + 0x58], eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x68], str.AtlAxWin
mov dword [esp + 0x6c], esi
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0x41c65c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
mov esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x74]
push esi
push ebp
call edi
push 0xf0
push esi
push ebp
mov ebx, eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ebp, ebp
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x74], ebp
je 0x40e5ad
mov ecx, dword [esp + 0x70]
push eax
push ecx
call esi
push eax
mov dword [esp + 0x2c], eax
call edi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
test ebx, ebx
je 0x40e8b4
mov edx, dword [esp + 0x70]
push ebx
push edx
call esi
push eax
mov dword [esp + 0x38], eax
call edi
mov ebx, eax
push ebx
mov dword [esp + 0x1c], ebx
call fcn.0040e900
mov ebp, eax
mov ax, word [ebx + 2]
mov edi, ebp
add esp, 4
sub edi, ebx
xor ecx, ecx
cmp ax, 0xffff
mov dword [esp + 0x2c], ebp
sete cl
mov esi, ecx
cmp ax, 0xffff
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
lea ecx, [ebx + 0x10]
je 0x40e600
lea ecx, [ebx + 8]
xor eax, eax
mov dword [esp + 0x10], 0
mov ax, word [ecx]
test eax, eax
mov dword [esp + 0x30], eax
jle 0x40e6fa
mov dword [esp + 0x14], eax
test esi, esi
lea eax, [ebp + 0x18]
jne 0x40e627
lea eax, [ebp + 0x12]
mov cx, word [eax]
cmp cx, 0xffff
jne 0x40e636
add eax, 4
jmp 0x40e649
add eax, 2
test cx, cx
je 0x40e649
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e63e
mov cx, word [eax]
cmp cx, 0xffff
jne 0x40e658
add eax, 4
jmp 0x40e66b
add eax, 2
test cx, cx
je 0x40e66b
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e660
xor edx, edx
mov dx, word [eax]
lea ebx, [edx + eax + 5]
lea eax, [ebp + 0x18]
and ebx, 0xfffffffc
test esi, esi
jne 0x40e681
lea eax, [ebp + 0x12]
cmp word [eax], 0x7b
jne 0x40e6d7
push str.AtlAxWin
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, 6
add ecx, 0x12
add ecx, edi
test esi, esi
lea edi, [ecx + eax*2 + 0x52]
je 0x40e6b5
mov eax, dword [ebp + 0x14]
jmp 0x40e6bb
xor eax, eax
mov ax, word [ebp + 0x10]
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x38]
push edx
push ecx
push eax
call fcn.0040ea30
lea edi, [eax + edi + 3]
add esp, 0xc
and edi, 0xfffffffc
jmp 0x40e6dd
mov edx, ebx
sub edx, ebp
add edi, edx
mov eax, dword [esp + 0x14]
mov ebp, ebx
dec eax
mov dword [esp + 0x14], eax
jne 0x40e61d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40e701
mov ebx, dword [esp + 0x18]
mov edi, ebx
jmp 0x40e873
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push eax
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ecx, edx
mov edi, ebx
mov ebp, ecx
mov dword [esp + 0x18], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
add ebx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040e8e0
mov ebp, dword [esp + 0x30]
mov word [eax], 0
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x1c]
push esi
push ebp
call fcn.0040e9b0
add esp, 8
mov dword [esp + 0x2c], eax
test esi, esi
je 0x40e765
lea ecx, [ebp + 0x18]
mov dword [esp + 0x10], ecx
jmp 0x40e76c
lea edx, [ebp + 0x12]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
cmp word [ecx], 0x7b
jne 0x40e830
mov eax, esi
mov esi, ebp
neg eax
sbb eax, eax
mov edi, ebx
and eax, 6
push str.AtlAxWin
add eax, 0x12
mov ecx, eax
add ebx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov esi, str.AtlAxWin
mov ecx, eax
mov edi, ebx
mov edx, ecx
add ebx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, 0x13
mov edi, ebx
add ebx, 0x4e
rep movsd dword es:[edi], dword [esi]
test eax, eax
movsw word es:[edi], word [esi]
je 0x40e7e3
mov eax, dword [ebp + 0x14]
jmp 0x40e7e9
xor eax, eax
mov ax, word [ebp + 0x10]
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
call fcn.0040ea30
mov ecx, eax
mov word [ebx], ax
mov esi, dword [esp + 0x3c]
add ebx, 2
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
add ebx, eax
mov ecx, edx
mov eax, ebx
and ecx, 3
not eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
inc eax
and eax, 3
push ecx
add ebx, eax
call fcn.0040e8e0
add esp, 0x10
jmp 0x40e855
sub eax, ebp
mov esi, ebp
mov ecx, eax
mov edi, ebx
mov edx, ecx
add ebx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040e8e0
add esp, 4
inc word [eax]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x20], eax
jne 0x40e746
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x74]
push edx
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
cmp edi, ebx
mov ebp, eax
je 0x40e8a5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x40e8cb
test eax, eax
je 0x40e8cb
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x14