Function at 0x40a6e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43267d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push edi
movzx edi, word [ebp + 8]
push 0xf0
push edi
push dword [0x445478]
mov dword [esp + 0x38], ecx
call esi
and dword [esp + 0x28], 0
and dword [esp + 0x10], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a74b
push eax
push dword [0x445478]
call ebx
test eax, eax
je 0x40a74b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x28], eax
push 5
push edi
push dword [0x445478]
call esi
test eax, eax
je 0x40aa96
push eax
push dword [0x445478]
call ebx
test eax, eax
je 0x40aa8d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40aa8d
movzx esi, word [eax + 2]
mov ecx, 0xffff
xor ebx, ebx
mov edx, ecx
cmp si, dx
sete bl
lea edx, [eax + 0x10]
mov dword [esp + 0x14], ebx
cmp si, cx
je 0x40a7a0
lea edx, [eax + 8]
movzx esi, word [edx]
mov ecx, eax
mov dword [esp + 0x34], esi
call fcn.00405433
mov ebx, eax
mov eax, dword [esp + 0x2c]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
xor eax, eax
cmp ax, si
jae 0x40aa96
cmp dword [esp + 0x14], 0
je 0x40a7df
mov edi, dword [ebx + 0x14]
jmp 0x40a7e3
movzx edi, word [ebx + 0x10]
xor ecx, ecx
lea eax, [ebx + 0x18]
cmp dword [esp + 0x14], ecx
jne 0x40a7f1
lea eax, [ebx + 0x12]
cmp word [eax], 0x7b
jne 0x40aa13
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
cmp eax, ecx
je 0x40a826
movzx edx, word [eax]
mov ecx, dword [eax + 4]
add eax, 2
movzx esi, word [eax]
mov dword [esp + 0x30], eax
add eax, 6
cmp edx, edi
je 0x40a8c7
add eax, ecx
jne 0x40a807
xor esi, esi
and dword [esp + 0x18], 0
and dword [esp + 0x54], 0
test esi, esi
je 0x40a87c
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40aa64
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40aa4e
push esi
push dword [esp + 0x28]
push esi
push eax
call fcn.0040327e
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x18]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
and dword [esp + 0x24], 0
lea eax, [esp + 0x24]
mov byte [esp + 0x54], 1
mov ecx, dword [esp + 0x18]
push eax
call fcn.00405665
pop ecx
mov dword [esp + 0x10], eax
test eax, eax
js 0x40a9f4
and dword [esp + 0x10], 0
call fcn.004087d6
mov esi, dword [esp + 0x14]
lea eax, [ebx + 0x18]
test esi, esi
jne 0x40a8b9
lea eax, [ebx + 0x12]
mov dword [esp + 0x30], eax
test esi, esi
je 0x40a8e5
movzx eax, word [ebx + 0xc]
jmp 0x40a8e9
mov eax, 0x378
cmp si, ax
je 0x40a826
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
lea esi, [ecx + 6]
jmp 0x40a828
movzx eax, word [ebx + 8]
movsx edx, ax
mov dword [esp + 0x38], edx
test esi, esi
je 0x40a8fa
movzx eax, word [ebx + 0xe]
jmp 0x40a8fe
movzx eax, word [ebx + 0xa]
movsx ecx, ax
mov dword [esp + 0x3c], ecx
test esi, esi
je 0x40a90f
movzx eax, word [ebx + 0x10]
jmp 0x40a913
movzx eax, word [ebx + 0xc]
cwde
add eax, edx
mov dword [esp + 0x40], eax
test esi, esi
je 0x40a924
movzx eax, word [ebx + 0x12]
jmp 0x40a928
movzx eax, word [ebx + 0xe]
mov edi, dword [esp + 0x2c]
cwde
add eax, ecx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
test esi, esi
je 0x40a94a
mov esi, dword [ebx + 0x14]
jmp 0x40a94e
movzx esi, word [ebx + 0x10]
cmp dword [esp + 0x14], 0
je 0x40a95a
mov edx, dword [ebx + 4]
jmp 0x40a95c
xor edx, edx
cmp dword [esp + 0x14], 0
je 0x40a968
mov eax, dword [ebx + 8]
jmp 0x40a96a
mov eax, dword [ebx]
mov ecx, dword [edi + 4]
push esi
push edx
or eax, 0x10000
push eax
lea eax, [esp + 0x44]
push eax
push ecx
push str.AtlAxWinLic100
lea eax, [esp + 0x28]
push eax
call fcn.00409d93
mov esi, dword [esp + 0x10]
xor edi, edi
cmp esi, edi
je 0x40a9eb
cmp dword [esp + 0x14], edi
je 0x40a9a8
mov eax, dword [ebx]
cmp eax, edi
je 0x40a9a8
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [esp + 0x24]
lea ecx, [esp + 0x14]
push dword [esp + 0x1c]
push dword [esp + 0x38]
call fcn.0040b4b1
mov dword [esp + 0x10], eax
cmp eax, edi
jl 0x40aa6e
cmp word [esp + 0x20], di
jne 0x40a9d4
mov dword [esp + 0x1c], edi
push 0x13
push edi
push edi
push edi
push edi
push dword [esp + 0x30]
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x1c], esi
jmp 0x40a9f4
call fcn.004032bc
mov dword [esp + 0x10], eax
push dword [esp + 0x24]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40aa2a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40aa2a
cmp word [esp + 0x20], cx
je 0x40aa2a
push 2
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x1c], eax
push dword [esp + 0x14]
mov eax, ebx
call fcn.004054b2
inc dword [esp + 0x24]
mov ebx, eax
mov ax, word [esp + 0x24]
pop ecx
cmp ax, word [esp + 0x34]
jb 0x40a7d3
jmp 0x40aa96
call fcn.004032bc
mov dword [esp + 0x10], eax
or dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
jmp 0x40aa83
mov dword [esp + 0x10], 0x8007000e
jmp 0x40aa57
push dword [esp + 0x24]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x40aa96
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40aa96
call fcn.004032bc
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4