Function at 0x403f31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x3c
mov eax, 0x40b8e8
call fcn.0040ae04
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 8]
movzx eax, ax
push 0xf0
push eax
push dword [0x4122d8]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
and dword [ebp - 0x40], 0
xor edi, edi
mov esi, dword [sym.imp.kernel32.dll_LockResource]
mov ebx, dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x403f84
push eax
push dword [0x4122d8]
call ebx
test eax, eax
je 0x403f84
push eax
call esi
mov dword [ebp - 0x40], eax
push 5
push dword [ebp - 0x3c]
push dword [0x4122d8]
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x404256
push eax
push dword [0x4122d8]
call ebx
test eax, eax
je 0x40424f
push eax
call esi
mov esi, eax
test esi, esi
je 0x40424f
xor eax, eax
mov ecx, 0xffff
cmp word [esi + 2], cx
push esi
sete al
mov dword [ebp - 0x30], eax
call main
push esi
movzx eax, word [eax]
mov dword [ebp - 0x3c], eax
call main
pop ecx
mov ebx, eax
mov eax, dword [ebp - 0x44]
pop ecx
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [ebp - 0x34], edi
mov dword [ebp - 0x38], eax
xor eax, eax
cmp ax, word [ebp - 0x3c]
jae 0x404256
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x40400e
mov ecx, dword [ebx + 0x14]
jmp 0x404012
movzx ecx, word [ebx + 0x10]
test esi, esi
lea edx, [ebx + 0x12]
lea eax, [ebx + 0x18]
cmovne edx, eax
mov dword [ebp - 0x48], edx
cmp word [edx], 0x7b
jne 0x4041ec
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x40]
push ecx
call main
xor ecx, ecx
mov dword [ebp - 0x2c], eax
add esp, 0xc
mov dword [ebp - 0x24], ecx
and dword [ebp - 4], ecx
test eax, eax
je 0x404099
push eax
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x404228
push edi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
je 0x40421f
mov eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
push eax
push ecx
call main
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]
mov ecx, dword [ebp - 0x24]
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push ecx
call fcn.00407bed
mov edi, eax
pop ecx
pop ecx
test edi, edi
js 0x4041cc
and dword [ebp - 0x28], 0
call main
test esi, esi
je 0x4040ca
movzx eax, word [ebx + 0xc]
jmp 0x4040ce
movzx eax, word [ebx + 8]
movsx ecx, ax
mov dword [ebp - 0x20], ecx
test esi, esi
je 0x4040de
movzx eax, word [ebx + 0xe]
jmp 0x4040e2
movzx eax, word [ebx + 0xa]
movsx edx, ax
mov dword [ebp - 0x1c], edx
test esi, esi
je 0x4040f2
movzx eax, word [ebx + 0x10]
jmp 0x4040f6
movzx eax, word [ebx + 0xc]
cwde
add eax, ecx
mov dword [ebp - 0x18], eax
test esi, esi
je 0x404106
movzx eax, word [ebx + 0x12]
jmp 0x40410a
movzx eax, word [ebx + 0xe]
mov edi, dword [ebp - 0x44]
cwde
add eax, edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
test esi, esi
je 0x404129
mov edx, dword [ebx + 0x14]
jmp 0x40412d
movzx edx, word [ebx + 0x10]
test esi, esi
je 0x404136
mov ecx, dword [ebx + 4]
jmp 0x404138
xor ecx, ecx
test esi, esi
je 0x404141
mov eax, dword [ebx + 8]
jmp 0x404143
mov eax, dword [ebx]
push 0
push edx
push ecx
or eax, 0x10000
lea ecx, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
push str.AtlAxWinLic120
call main
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4041c2
cmp dword [ebp - 0x30], 0
je 0x40417e
cmp dword [ebx], 0
je 0x40417e
push dword [ebx]
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [ebp - 0x2c]
xor eax, eax
lea ecx, [ebp - 0x28]
push eax
push 0x40d118
push eax
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x48]
call fcn.00404304
mov edi, eax
test edi, edi
js 0x40422f
mov eax, dword [ebp - 0x38]
xor ecx, ecx
cmp word [ebp - 0x34], cx
push 0x13
push ecx
push ecx
push ecx
push ecx
cmove eax, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x38], esi
jmp 0x4041c9
call fcn.0040384a
mov edi, eax
mov esi, dword [ebp - 0x30]
push dword [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x404201
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x404201
cmp word [ebp - 0x34], 0
je 0x404201
push 2
push dword [ebp - 0x38]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x38], eax
push esi
push ebx
call main
mov ebx, eax
mov eax, dword [ebp - 0x34]
inc eax
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
cmp ax, word [ebp - 0x3c]
jb 0x404005
jmp 0x404256
call fcn.0040384a
mov edi, eax
jmp 0x40423c
mov edi, 0x8007000e
jmp 0x40423c
push dword [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x404256
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x404256
call fcn.0040384a
mov edi, eax
mov eax, edi
call fcn.0040adc2
ret 4