Function at 0x40f8ff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x563842
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5cdfb0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x5cdfb0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov eax, dword [ebp + 8]
movzx eax, ax
push 0xf0
push eax
push dword [0x5dd9c8]
mov dword [esp + 0x24], eax
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 [esp + 0x24], ecx
test eax, eax
je 0x40f982
push eax
push dword [0x5dd9c8]
call ebx
test eax, eax
je 0x40f982
push eax
call edi
mov dword [esp + 0x24], eax
push 5
push dword [esp + 0x1c]
push dword [0x5dd9c8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40fcb7
push eax
push dword [0x5dd9c8]
call ebx
test eax, eax
je 0x40fcb0
push eax
call edi
test eax, eax
je 0x40fcb0
movzx ecx, word [eax + 2]
mov edx, 0xffff
xor ebx, ebx
cmp cx, dx
sete bl
cmp cx, dx
lea ecx, [eax + 0x10]
je 0x40f9d4
lea ecx, [eax + 8]
movzx ecx, word [ecx]
mov dword [esp + 0x18], ecx
mov ecx, eax
call fcn.0040ff61
mov edi, eax
mov eax, dword [esp + 0x20]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
xor eax, eax
jmp 0x40fc74
test ebx, ebx
je 0x40fa0b
mov edx, dword [edi + 0x14]
jmp 0x40fa0f
movzx edx, word [edi + 0x10]
test ebx, ebx
lea ecx, [edi + 0x12]
lea eax, [edi + 0x18]
cmovne ecx, eax
mov dword [esp + 0x28], ecx
cmp word [ecx], 0x7b
jne 0x40fc48
mov eax, dword [esp + 0x24]
mov ecx, eax
and dword [esp + 0x2c], 0
test eax, eax
je 0x40fa5a
movzx eax, word [ecx]
add ecx, 2
mov dword [esp + 0x1c], ecx
movzx esi, word [ecx]
mov dword [esp + 0x34], esi
mov esi, dword [ecx + 2]
add ecx, 6
cmp eax, edx
je 0x40fae6
add ecx, esi
jne 0x40fa37
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x30], ecx
and dword [esp + 0x58], ecx
test esi, esi
je 0x40faba
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40fc8a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40fc81
push esi
push dword [esp + 0x30]
push esi
push eax
call fcn.00405098
mov esi, dword [esp + 0x2c]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x30]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x30]
and dword [esp + 0x2c], 0
lea edx, [esp + 0x2c]
mov byte [esp + 0x58], 1
call fcn.004105e4
mov esi, eax
test esi, esi
js 0x40fc29
call fcn.004155fe
test ebx, ebx
je 0x40fb06
movzx eax, word [edi + 0xc]
jmp 0x40fb0a
mov eax, 0x378
cmp word [esp + 0x34], ax
je 0x40fa5a
mov eax, dword [esp + 0x1c]
add esi, 6
mov dword [esp + 0x2c], eax
jmp 0x40fa5c
movzx eax, word [edi + 8]
movsx ecx, ax
mov dword [esp + 0x38], ecx
test ebx, ebx
je 0x40fb1b
movzx eax, word [edi + 0xe]
jmp 0x40fb1f
movzx eax, word [edi + 0xa]
movsx edx, ax
mov dword [esp + 0x3c], edx
test ebx, ebx
je 0x40fb30
movzx eax, word [edi + 0x10]
jmp 0x40fb34
movzx eax, word [edi + 0xc]
cwde
add eax, ecx
mov dword [esp + 0x40], eax
test ebx, ebx
je 0x40fb45
movzx eax, word [edi + 0x12]
jmp 0x40fb49
movzx eax, word [edi + 0xe]
mov esi, dword [esp + 0x20]
cwde
add eax, edx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
test ebx, ebx
je 0x40fb6b
mov eax, dword [edi + 0x14]
jmp 0x40fb6f
movzx eax, word [edi + 0x10]
test ebx, ebx
je 0x40fb78
mov edx, dword [edi + 4]
jmp 0x40fb7a
xor edx, edx
test ebx, ebx
je 0x40fb83
mov ecx, dword [edi + 8]
jmp 0x40fb85
mov ecx, dword [edi]
push 0
push dword [0x5dd9c4]
or ecx, 0x10000
push eax
push dword [esi + 4]
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
push eax
push dword [esp + 0x54]
push dword [esp + 0x54]
push ecx
push 0
push str.AtlAxWinLic120
push edx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esp + 0x34], eax
test eax, eax
je 0x40fc22
test ebx, ebx
je 0x40fbda
cmp dword [edi], 0
je 0x40fbda
push dword [edi]
push eax
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [esp + 0x2c]
lea ecx, [esp + 0x38]
sub esp, 0x10
push dword [esp + 0x44]
push dword [esp + 0x40]
call fcn.0040fcd9
mov esi, eax
test esi, esi
js 0x40fc91
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp word [esp + 0x14], cx
push 0x13
push ecx
push ecx
push ecx
cmove eax, ecx
push ecx
push eax
mov eax, dword [esp + 0x4c]
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x40fc29
call fcn.00415f1b
mov esi, eax
push dword [esp + 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40fc60
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40fc60
cmp word [esp + 0x14], 0
je 0x40fc60
push 2
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x10], eax
mov edx, ebx
mov ecx, edi
call fcn.0040ffde
mov edi, eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp ax, word [esp + 0x18]
jb 0x40fa02
jmp 0x40fcb7
call fcn.00415f1b
mov esi, eax
jmp 0x40fc9b
mov esi, 0x8007000e
jmp 0x40fc9b
push dword [esp + 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40fcb7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40fcb7
call fcn.00415f1b
mov esi, eax
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0052f025
mov esp, ebp
pop ebp
ret 4