Function at 0x408c2b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x3c
mov eax, 0x57c6f5
call fcn.00531c83
mov dword [ebp - 0x40], ecx
movzx eax, word [ebp + 8]
push 0xf0
push eax
push dword [0x5fa8f8]
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 0x408c7a
push eax
push dword [0x5fa8f8]
call ebx
test eax, eax
je 0x408c7a
push eax
call edi
mov dword [ebp - 0x3c], eax
movzx ecx, word [ebp + 8]
push 5
push ecx
push dword [0x5fa8f8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x408fa4
push eax
push dword [0x5fa8f8]
call ebx
test eax, eax
je 0x408f9d
push eax
call edi
test eax, eax
je 0x408f9d
movzx ecx, word [eax + 2]
mov edx, 0xffff
xor ebx, ebx
cmp cx, dx
sete bl
cmp cx, dx
lea ecx, [eax + 0x10]
je 0x408ccd
lea ecx, [eax + 8]
movzx ecx, word [ecx]
mov dword [ebp - 0x44], ecx
mov ecx, eax
call fcn.0040b37f
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 0x408f4b
test ebx, ebx
je 0x408d00
mov edx, dword [edi + 0x14]
jmp 0x408d04
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 0x408f24
mov eax, dword [ebp - 0x3c]
mov ecx, eax
and dword [ebp - 0x18], 0
test eax, eax
je 0x408d4a
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 0x408dd6
add ecx, esi
jne 0x408d29
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], ecx
test esi, esi
je 0x408dad
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x408f70
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x408f60
push esi
push dword [ebp - 0x18]
push esi
push eax
call fcn.004030ac
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 0x408f57
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0040b540
mov esi, eax
test esi, esi
js 0x408f01
call fcn.00410580
test ebx, ebx
je 0x408df3
movzx eax, word [edi + 0xc]
jmp 0x408df7
mov eax, 0x378
cmp word [ebp - 0x1c], ax
je 0x408d4a
mov eax, dword [ebp - 0x38]
add esi, 6
mov dword [ebp - 0x18], eax
jmp 0x408d4c
movzx eax, word [edi + 8]
movsx ecx, ax
mov dword [ebp - 0x2c], ecx
test ebx, ebx
je 0x408e07
movzx eax, word [edi + 0xe]
jmp 0x408e0b
movzx eax, word [edi + 0xa]
movsx edx, ax
mov dword [ebp - 0x28], edx
test ebx, ebx
je 0x408e1b
movzx eax, word [edi + 0x10]
jmp 0x408e1f
movzx eax, word [edi + 0xc]
cwde
add eax, ecx
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x408e2f
movzx eax, word [edi + 0x12]
jmp 0x408e33
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 0x408e52
mov eax, dword [edi + 0x14]
jmp 0x408e56
movzx eax, word [edi + 0x10]
test ebx, ebx
je 0x408e5f
mov edx, dword [edi + 4]
jmp 0x408e61
xor edx, edx
test ebx, ebx
je 0x408e6a
mov ecx, dword [edi + 8]
jmp 0x408e6c
mov ecx, dword [edi]
push 0
push dword [0x5fa8f4]
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 0x408efa
test ebx, ebx
je 0x408eba
cmp dword [edi], 0
je 0x408eba
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.004092ae
mov esi, eax
test esi, esi
js 0x408f7e
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 0x408f01
call fcn.00411077
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 0x408f1e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
jmp 0x408f39
cmp word [ebp - 0x34], 0
je 0x408f39
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.0040b322
mov edi, eax
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp ax, word [ebp - 0x44]
jb 0x408cf7
jmp 0x408fa4
mov dword [ebp - 4], 2
jmp 0x408f8e
call fcn.00411077
mov esi, eax
mov dword [ebp - 4], 1
jmp 0x408f8e
mov esi, 0x8007000e
mov dword [ebp - 4], 3
jmp 0x408f8e
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 0x408fa4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x408fa4
call fcn.00411077
mov esi, eax
mov eax, esi
call fcn.00531c2d
ret 4