Function at 0x40a6b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x423008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push edi
movzx edi, word [ebp + 8]
push pe_nt_image_headers32
push edi
push dword [0x4241c8]
mov dword [ebp - 0x30], ecx
call esi
and dword [ebp - 0x34], 0
and dword [ebp - 0x18], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a70a
push eax
push dword [0x4241c8]
call ebx
test eax, eax
je 0x40a70a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x34], eax
push 5
push edi
push dword [0x4241c8]
call esi
xor edi, edi
cmp eax, edi
je 0x40a9ca
push eax
push dword [0x4241c8]
call ebx
cmp eax, edi
je 0x40a9c2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x40a9c2
xor ecx, ecx
mov eax, 0xffff
cmp word [esi + 2], ax
push esi
sete cl
mov dword [ebp - 0x1c], ecx
call fcn.004013d9
movzx ebx, word [eax]
push esi
mov dword [ebp - 0x3c], ebx
call fcn.004013f4
pop ecx
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x30]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], edi
cmp ax, bx
jae 0x40a9ca
cmp dword [ebp - 0x1c], edi
je 0x40a791
mov ebx, dword [esi + 0x14]
jmp 0x40a795
movzx ebx, word [esi + 0x10]
push dword [ebp - 0x1c]
push esi
call fcn.004093aa
pop ecx
pop ecx
test al, al
je 0x40a95e
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x20], edi
push ebx
call fcn.0040936c
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x24], edi
cmp ebx, edi
je 0x40a80a
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40a9a1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40a992
push ebx
push dword [ebp - 0x20]
push ebx
push eax
call fcn.0040107c
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor edi, edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x20], edi
call fcn.00401a40
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, edi
jl 0x40a946
mov dword [ebp - 0x18], edi
call fcn.00409027
mov ebx, dword [ebp - 0x1c]
lea eax, [esi + 0x18]
cmp ebx, edi
jne 0x40a83b
lea eax, [esi + 0x12]
mov dword [ebp - 0x38], eax
cmp ebx, edi
je 0x40a848
movzx eax, word [esi + 0xc]
jmp 0x40a84c
movzx eax, word [esi + 8]
movsx edx, ax
mov dword [ebp - 0x14], edx
cmp ebx, edi
je 0x40a85c
movzx eax, word [esi + 0xe]
jmp 0x40a860
movzx eax, word [esi + 0xa]
movsx ecx, ax
mov dword [ebp - 0x10], ecx
cmp ebx, edi
je 0x40a870
movzx eax, word [esi + 0x10]
jmp 0x40a874
movzx eax, word [esi + 0xc]
cwde
add eax, edx
mov dword [ebp - 0xc], eax
cmp ebx, edi
je 0x40a884
movzx eax, word [esi + 0x12]
jmp 0x40a888
movzx eax, word [esi + 0xe]
mov ebx, dword [ebp - 0x30]
cwde
add eax, ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
cmp dword [ebp - 0x1c], edi
je 0x40a8a8
mov edx, dword [esi + 0x14]
jmp 0x40a8ac
movzx edx, word [esi + 0x10]
cmp dword [ebp - 0x1c], edi
je 0x40a8b6
mov ecx, dword [esi + 4]
jmp 0x40a8b8
xor ecx, ecx
cmp dword [ebp - 0x1c], edi
je 0x40a8c2
mov eax, dword [esi + 8]
jmp 0x40a8c4
mov eax, dword [esi]
push edi
push edx
push ecx
or eax, 0x10000
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
lea ecx, [ebp - 0x18]
push str.AtlAxWinLic100
call fcn.004093c7
mov ebx, dword [ebp - 0x18]
cmp ebx, edi
je 0x40a93e
cmp dword [ebp - 0x1c], edi
je 0x40a8fc
mov eax, dword [esi]
cmp eax, edi
je 0x40a8fc
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push edi
push 0x41c464
push edi
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x38]
call fcn.0040a232
mov dword [ebp - 0x18], eax
cmp eax, edi
jl 0x40a9aa
cmp word [ebp - 0x2c], di
jne 0x40a929
mov dword [ebp - 0x28], edi
push 0x13
push edi
push edi
push edi
push edi
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x28], ebx
jmp 0x40a946
call fcn.00401ea1
mov dword [ebp - 0x18], eax
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x40a972
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40a972
cmp word [ebp - 0x2c], di
je 0x40a972
push 2
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x1c]
push esi
call fcn.0040147a
inc dword [ebp - 0x2c]
mov esi, eax
mov ax, word [ebp - 0x2c]
pop ecx
pop ecx
cmp ax, word [ebp - 0x3c]
jb 0x40a787
jmp 0x40a9ca
call fcn.00401ea1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
test eax, eax
jmp 0x40a9b8
mov dword [ebp - 0x18], 0x8007000e
jmp 0x40a99a
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x40a9ca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40a9ca
call fcn.00401ea1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c55c
leave
ret 4