Function at 0x408c4b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x3c
mov eax, 0x57e60d
call fcn.00532017
mov dword [ebp - 0x40], ecx
movzx eax, word [ebp + 8]
push 0xf0
push eax
push dword [0x5fd900]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
xor esi, esi
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x408c9a
push eax
push dword [0x5fd900]
call ebx
test eax, eax
je 0x408c9a
push eax
call edi
mov dword [ebp - 0x3c], eax
movzx ecx, word [ebp + 8]
push 5
push ecx
push dword [0x5fd900]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x408fc4
push eax
push dword [0x5fd900]
call ebx
test eax, eax
je 0x408fbd
push eax
call edi
test eax, eax
je 0x408fbd
movzx ecx, word [eax + 2]
mov edx, 0xffff
xor ebx, ebx
cmp cx, dx
sete bl
cmp cx, dx
lea ecx, [eax + 0x10]
je 0x408ced
lea ecx, [eax + 8]
movzx ecx, word [ecx]
mov dword [ebp - 0x44], ecx
mov ecx, eax
call fcn.0040b3c0
mov edi, eax
mov eax, dword [ebp - 0x40]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [ebp - 0x34], esi
mov dword [ebp - 0x30], eax
xor eax, eax
jmp 0x408f6b
test ebx, ebx
je 0x408d20
mov edx, dword [edi + 0x14]
jmp 0x408d24
movzx edx, word [edi + 0x10]
test ebx, ebx
lea ecx, [edi + 0x12]
lea eax, [edi + 0x18]
cmovne ecx, eax
mov dword [ebp - 0x48], ecx
cmp word [ecx], 0x7b
jne 0x408f44
mov eax, dword [ebp - 0x3c]
mov ecx, eax
and dword [ebp - 0x18], 0
test eax, eax
je 0x408d6a
movzx eax, word [ecx]
add ecx, 2
mov dword [ebp - 0x38], ecx
movzx esi, word [ecx]
mov dword [ebp - 0x1c], esi
mov esi, dword [ecx + 2]
add ecx, 6
cmp eax, edx
je 0x408df6
add ecx, esi
jne 0x408d49
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], ecx
test esi, esi
je 0x408dcd
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x408f90
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x408f80
push esi
push dword [ebp - 0x18]
push esi
push eax
call fcn.004030cc
mov esi, dword [ebp - 0x38]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x14]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, eax
test esi, esi
js 0x408f77
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0040b581
mov esi, eax
test esi, esi
js 0x408f21
call fcn.004105c3
test ebx, ebx
je 0x408e13
movzx eax, word [edi + 0xc]
jmp 0x408e17
mov eax, 0x378
cmp word [ebp - 0x1c], ax
je 0x408d6a
mov eax, dword [ebp - 0x38]
add esi, 6
mov dword [ebp - 0x18], eax
jmp 0x408d6c
movzx eax, word [edi + 8]
movsx ecx, ax
mov dword [ebp - 0x2c], ecx
test ebx, ebx
je 0x408e27
movzx eax, word [edi + 0xe]
jmp 0x408e2b
movzx eax, word [edi + 0xa]
movsx edx, ax
mov dword [ebp - 0x28], edx
test ebx, ebx
je 0x408e3b
movzx eax, word [edi + 0x10]
jmp 0x408e3f
movzx eax, word [edi + 0xc]
cwde
add eax, ecx
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x408e4f
movzx eax, word [edi + 0x12]
jmp 0x408e53
movzx eax, word [edi + 0xe]
mov esi, dword [ebp - 0x40]
cwde
add eax, edx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
test ebx, ebx
je 0x408e72
mov eax, dword [edi + 0x14]
jmp 0x408e76
movzx eax, word [edi + 0x10]
test ebx, ebx
je 0x408e7f
mov edx, dword [edi + 4]
jmp 0x408e81
xor edx, edx
test ebx, ebx
je 0x408e8a
mov ecx, dword [edi + 8]
jmp 0x408e8c
mov ecx, dword [edi]
push 0
push dword [0x5fd8fc]
or ecx, 0x10000
push eax
push dword [esi + 4]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push ecx
push 0
push str.AtlAxWinLic140
push edx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x408f1a
test ebx, ebx
je 0x408eda
cmp dword [edi], 0
je 0x408eda
push dword [edi]
push eax
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
sub esp, 0x10
push dword [ebp - 0x14]
push dword [ebp - 0x48]
call fcn.004092ce
mov esi, eax
test esi, esi
js 0x408f9e
mov eax, dword [ebp - 0x30]
xor ecx, ecx
cmp word [ebp - 0x34], cx
push 0x13
push ecx
push ecx
push ecx
cmove eax, ecx
push ecx
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x408f21
call fcn.004110ba
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x408f3e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
jmp 0x408f59
cmp word [ebp - 0x34], 0
je 0x408f59
push 2
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x30], eax
mov edx, ebx
mov ecx, edi
call fcn.0040b363
mov edi, eax
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp ax, word [ebp - 0x44]
jb 0x408d17
jmp 0x408fc4
mov dword [ebp - 4], 2
jmp 0x408fae
call fcn.004110ba
mov esi, eax
mov dword [ebp - 4], 1
jmp 0x408fae
mov esi, 0x8007000e
mov dword [ebp - 4], 3
jmp 0x408fae
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x408fc4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x408fc4
call fcn.004110ba
mov esi, eax
mov eax, esi
call fcn.00531fc1
ret 4