Function at 0x440320
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 0x4ee014
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 [0x4e3a20], eax
call esi
lea ecx, [esp + 0x3c]
mov dword [0x4e3a1c], eax
mov eax, dword [0x4edfe4]
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 0x4403ce
mov edx, dword [0x4edfe4]
mov dword [esp + 0x3c], esi
xor esi, esi
push 0x7f00
push esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], 0x440940
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 0x4ee014
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 0x44042d
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 0x440734
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.00440780
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 0x440480
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 0x44057a
mov dword [esp + 0x14], eax
test esi, esi
lea eax, [ebp + 0x18]
jne 0x4404a7
lea eax, [ebp + 0x12]
mov cx, word [eax]
cmp cx, 0xffff
jne 0x4404b6
add eax, 4
jmp 0x4404c9
add eax, 2
test cx, cx
je 0x4404c9
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4404be
mov cx, word [eax]
cmp cx, 0xffff
jne 0x4404d8
add eax, 4
jmp 0x4404eb
add eax, 2
test cx, cx
je 0x4404eb
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4404e0
xor edx, edx
mov dx, word [eax]
lea ebx, [edx + eax + 5]
lea eax, [ebp + 0x18]
and ebx, 0xfffffffc
test esi, esi
jne 0x440501
lea eax, [ebp + 0x12]
cmp word [eax], 0x7b
jne 0x440557
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 0x440535
mov eax, dword [ebp + 0x14]
jmp 0x44053b
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.004408b0
lea edi, [eax + edi + 3]
add esp, 0xc
and edi, 0xfffffffc
jmp 0x44055d
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 0x44049d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x440581
mov ebx, dword [esp + 0x18]
mov edi, ebx
jmp 0x4406f3
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.00440760
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.00440830
add esp, 8
mov dword [esp + 0x2c], eax
test esi, esi
je 0x4405e5
lea ecx, [ebp + 0x18]
mov dword [esp + 0x10], ecx
jmp 0x4405ec
lea edx, [ebp + 0x12]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
cmp word [ecx], 0x7b
jne 0x4406b0
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
ret
dec esi
rep movsd dword es:[edi], dword [esi]
test eax, eax
movsw word es:[edi], word [esi]
je 0x440663
mov eax, dword [ebp + 0x14]
jmp 0x440669
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.004408b0
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.00440760
add esp, 0x10
jmp 0x4406d5
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.00440760
add esp, 4
inc word [eax]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x20], eax
jne 0x4405c6
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 0x440725
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 0x44074b
test eax, eax
je 0x44074b
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