Function at 0x4029b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41879a
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x421070]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x421070]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
movzx edi, word [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push pe_nt_image_headers32
push edi
push dword [0x4233f0]
mov dword [esp + 0x38], ecx
call esi
and dword [esp + 0x30], 0
and dword [esp + 0x10], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402a35
push eax
push dword [0x4233f0]
call ebx
test eax, eax
je 0x402a35
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x30], eax
push 5
push edi
push dword [0x4233f0]
call esi
test eax, eax
je 0x402d87
push eax
push dword [0x4233f0]
call ebx
test eax, eax
je 0x402d7e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x402d7e
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 + 0x20], ebx
cmp si, cx
je 0x402a8a
lea edx, [eax + 8]
movzx esi, word [edx]
mov ecx, eax
mov dword [esp + 0x34], esi
call fcn.0040841c
mov ebx, eax
mov eax, dword [esp + 0x2c]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
xor eax, eax
cmp ax, si
jae 0x402d87
cmp dword [esp + 0x20], 0
je 0x402ac9
mov edi, dword [ebx + 0x14]
jmp 0x402acd
movzx edi, word [ebx + 0x10]
xor ecx, ecx
lea eax, [ebx + 0x18]
cmp dword [esp + 0x20], ecx
jne 0x402adb
lea eax, [ebx + 0x12]
cmp word [eax], 0x7b
jne 0x402d04
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
cmp eax, ecx
je 0x402b10
movzx edx, word [eax]
mov ecx, dword [eax + 4]
add eax, 2
movzx esi, word [eax]
mov dword [esp + 0x18], eax
add eax, 6
cmp edx, edi
je 0x402bb1
add eax, ecx
jne 0x402af1
xor esi, esi
and dword [esp + 0x14], 0
and dword [esp + 0x58], 0
test esi, esi
je 0x402b66
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x402d55
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x402d3f
push esi
push dword [esp + 0x20]
push esi
push eax
call fcn.0040897c
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x14]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
mov byte [esp + 0x58], 1
mov ecx, dword [esp + 0x14]
push eax
call fcn.00408250
pop ecx
mov dword [esp + 0x10], eax
test eax, eax
js 0x402ce5
and dword [esp + 0x18], 0
call fcn.00408003
mov esi, dword [esp + 0x20]
lea eax, [ebx + 0x18]
test esi, esi
jne 0x402ba3
lea eax, [ebx + 0x12]
mov dword [esp + 0x10], eax
test esi, esi
je 0x402bcf
movzx eax, word [ebx + 0xc]
jmp 0x402bd3
mov eax, 0x378
cmp si, ax
je 0x402b10
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
lea esi, [ecx + 6]
jmp 0x402b12
movzx eax, word [ebx + 8]
movsx edx, ax
mov dword [esp + 0x38], edx
test esi, esi
je 0x402be4
movzx eax, word [ebx + 0xe]
jmp 0x402be8
movzx eax, word [ebx + 0xa]
movsx ecx, ax
mov dword [esp + 0x3c], ecx
test esi, esi
je 0x402bf9
movzx eax, word [ebx + 0x10]
jmp 0x402bfd
movzx eax, word [ebx + 0xc]
cwde
add eax, edx
mov dword [esp + 0x40], eax
test esi, esi
je 0x402c0e
movzx eax, word [ebx + 0x12]
jmp 0x402c12
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 0x402c34
mov esi, dword [ebx + 0x14]
jmp 0x402c38
movzx esi, word [ebx + 0x10]
cmp dword [esp + 0x20], 0
je 0x402c44
mov edx, dword [ebx + 4]
jmp 0x402c46
xor edx, edx
cmp dword [esp + 0x20], 0
je 0x402c52
mov eax, dword [ebx + 8]
jmp 0x402c54
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 + 0x30]
push eax
call fcn.004081a1
cmp dword [esp + 0x18], 0
je 0x402cdc
cmp dword [esp + 0x20], 0
je 0x402c93
mov eax, dword [ebx]
test eax, eax
je 0x402c93
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [esp + 0x1c]
lea edi, [esp + 0x1c]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00402fab
xor esi, esi
mov dword [esp + 0x10], eax
cmp eax, esi
jl 0x402d5f
cmp word [esp + 0x24], si
jne 0x402cc1
mov dword [esp + 0x28], esi
push 0x13
push esi
push esi
push esi
push esi
push dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x28], esi
jmp 0x402ce5
call fcn.00408407
mov dword [esp + 0x10], eax
push dword [esp + 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402d1b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x402d1b
cmp word [esp + 0x24], cx
je 0x402d1b
push 2
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x28], eax
push dword [esp + 0x20]
mov eax, ebx
call fcn.004081f0
inc dword [esp + 0x28]
mov ebx, eax
mov ax, word [esp + 0x28]
pop ecx
cmp ax, word [esp + 0x34]
jb 0x402abd
jmp 0x402d87
call fcn.00408407
mov dword [esp + 0x10], eax
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x402d74
mov dword [esp + 0x10], 0x8007000e
jmp 0x402d48
push dword [esp + 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x402d87
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x402d87
call fcn.00408407
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
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.0040ab11
mov esp, ebp
pop ebp
ret 4