Function at 0x408fc5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45ead4
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x47b570]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x47b570]
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 0xf0
push edi
push dword [0x47e308]
mov dword [esp + 0x3c], 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 0x409044
push eax
push dword [0x47e308]
call ebx
test eax, eax
je 0x409044
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x28], eax
push 5
push edi
push dword [0x47e308]
call esi
test eax, eax
je 0x409359
push eax
push dword [0x47e308]
call ebx
test eax, eax
je 0x409350
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x409350
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 + 0x18], ebx
cmp si, cx
je 0x409099
lea edx, [eax + 8]
movzx edi, word [edx]
mov ecx, eax
mov dword [esp + 0x34], edi
call fcn.00411439
mov esi, eax
mov eax, dword [esp + 0x30]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
xor eax, eax
cmp ax, di
jae 0x409359
cmp dword [esp + 0x18], 0
je 0x4090d8
mov ebx, dword [esi + 0x14]
jmp 0x4090dc
movzx ebx, word [esi + 0x10]
push dword [esp + 0x18]
mov eax, esi
call fcn.0040c38d
pop ecx
test al, al
je 0x4092d5
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
push ebx
call fcn.0040c354
and dword [esp + 0x24], 0
pop ecx
pop ecx
mov ebx, eax
and dword [esp + 0x58], 0
test ebx, ebx
je 0x40915c
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x409327
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x409311
push ebx
push dword [esp + 0x18]
push ebx
push eax
call fcn.004124ae
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
mov byte [esp + 0x58], 1
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0040c643
pop ecx
mov dword [esp + 0x10], eax
test eax, eax
js 0x4092b6
and dword [esp + 0x10], 0
call fcn.00411287
mov edi, dword [esp + 0x18]
lea eax, [esi + 0x18]
test edi, edi
jne 0x409199
lea eax, [esi + 0x12]
mov dword [esp + 0x2c], eax
test edi, edi
je 0x4091a7
movzx eax, word [esi + 0xc]
jmp 0x4091ab
movzx eax, word [esi + 8]
movsx edx, ax
mov dword [esp + 0x38], edx
test edi, edi
je 0x4091bc
movzx eax, word [esi + 0xe]
jmp 0x4091c0
movzx eax, word [esi + 0xa]
movsx ecx, ax
mov dword [esp + 0x3c], ecx
test edi, edi
je 0x4091d1
movzx eax, word [esi + 0x10]
jmp 0x4091d5
movzx eax, word [esi + 0xc]
cwde
add eax, edx
mov dword [esp + 0x40], eax
test edi, edi
je 0x4091e6
movzx eax, word [esi + 0x12]
jmp 0x4091ea
movzx eax, word [esi + 0xe]
mov ebx, dword [esp + 0x30]
cwde
add eax, ecx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
test edi, edi
je 0x40920c
mov edi, dword [esi + 0x14]
jmp 0x409210
movzx edi, word [esi + 0x10]
cmp dword [esp + 0x18], 0
je 0x40921c
mov edx, dword [esi + 4]
jmp 0x40921e
xor edx, edx
cmp dword [esp + 0x18], 0
je 0x40922a
mov eax, dword [esi + 8]
jmp 0x40922c
mov eax, dword [esi]
mov ecx, dword [ebx + 4]
push edi
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.0040c2b9
mov ebx, dword [esp + 0x10]
xor edi, edi
cmp ebx, edi
je 0x4092ad
cmp dword [esp + 0x18], edi
je 0x40926a
mov eax, dword [esi]
cmp eax, edi
je 0x40926a
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [esp + 0x14]
lea ecx, [esp + 0x14]
push dword [esp + 0x20]
push dword [esp + 0x34]
call fcn.0040a248
mov dword [esp + 0x10], eax
cmp eax, edi
jl 0x409331
cmp word [esp + 0x24], di
jne 0x409296
mov dword [esp + 0x20], edi
push 0x13
push edi
push edi
push edi
push edi
push dword [esp + 0x34]
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x20], ebx
jmp 0x4092b6
call fcn.004122f1
mov dword [esp + 0x10], eax
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4092ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4092ed
cmp word [esp + 0x24], 0
je 0x4092ed
push 2
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x20], eax
push dword [esp + 0x18]
mov eax, esi
call fcn.004114b8
inc dword [esp + 0x28]
mov esi, eax
mov ax, word [esp + 0x28]
pop ecx
cmp ax, word [esp + 0x34]
jb 0x4090cc
jmp 0x409359
call fcn.004122f1
mov dword [esp + 0x10], eax
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
jmp 0x409346
mov dword [esp + 0x10], 0x8007000e
jmp 0x40931a
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x409359
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x409359
call fcn.004122f1
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.0042fd59
mov esp, ebp
pop ebp
ret 4