Function at 0x41afe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x486f50
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4a2120]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x38], ebx
movzx esi, word [ebp + 8]
mov eax, dword [0x4a4e14]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xf0
push esi
push eax
call edi
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], ecx
cmp eax, ecx
je 0x41b055
mov ecx, dword [0x4a4e14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41b055
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x30], eax
mov edx, dword [0x4a4e14]
push 5
push esi
push edx
call edi
test eax, eax
je 0x41b397
push eax
mov eax, dword [0x4a4e14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41b38e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41b38e
movzx ecx, word [eax + 2]
mov dword [esp + 0x34], eax
xor eax, eax
mov edx, 0xffff
cmp cx, dx
sete al
cmp cx, dx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
lea ecx, [eax + 0x10]
je 0x41b0b5
lea ecx, [eax + 8]
movzx esi, word [ecx]
mov ecx, eax
mov dword [esp + 0x3c], esi
call fcn.00411270
mov edi, eax
mov eax, dword [ebx + 4]
push 5
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_GetWindow]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], edx
cmp cx, si
jae 0x41b397
jmp 0x41b0f4
mov edi, dword [esp + 0x28]
cmp dword [esp + 0x20], 0
je 0x41b103
mov ecx, dword [edi + 0x14]
lea eax, [edi + 0x18]
jmp 0x41b10a
movzx ecx, word [edi + 0x10]
lea eax, [edi + 0x12]
cmp word [eax], 0x7b
jne 0x41b310
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x24]
push edx
mov ebx, ecx
mov dword [esp + 0x28], 0
call fcn.00411380
mov ebx, eax
xor eax, eax
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x60], eax
cmp ebx, eax
je 0x41b186
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x41b34b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x24]
push ebx
push ecx
push ebx
push eax
call fcn.00430f4a
push eax
call fcn.0040d520
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [esp + 0x18]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor eax, eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov byte [esp + 0x60], 1
mov esi, dword [esp + 0x18]
push eax
call fcn.00411540
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41b2eb
mov dword [esp + 0x14], 0
call fcn.00416270
mov esi, dword [esp + 0x20]
test esi, esi
je 0x41b1ce
movzx eax, word [edi + 0xc]
lea ecx, [edi + 0x18]
mov dword [esp + 0x34], ecx
jmp 0x41b1d9
movzx eax, word [edi + 8]
lea edx, [edi + 0x12]
mov dword [esp + 0x34], edx
movsx edx, ax
mov dword [esp + 0x44], edx
test esi, esi
je 0x41b1ea
movzx eax, word [edi + 0xe]
jmp 0x41b1ee
movzx eax, word [edi + 0xa]
movsx ecx, ax
mov dword [esp + 0x48], ecx
test esi, esi
je 0x41b1ff
movzx eax, word [edi + 0x10]
jmp 0x41b203
movzx eax, word [edi + 0xc]
cwde
add eax, edx
mov dword [esp + 0x4c], eax
test esi, esi
je 0x41b214
movzx eax, word [edi + 0x12]
jmp 0x41b218
movzx eax, word [edi + 0xe]
mov ebx, dword [esp + 0x38]
movsx edx, ax
add edx, ecx
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x44]
push eax
push ecx
mov dword [esp + 0x58], edx
call dword [sym.imp.USER32.dll_MapDialogRect]
test esi, esi
je 0x41b243
mov esi, dword [edi + 0x14]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
jmp 0x41b24b
movzx esi, word [edi + 0x10]
mov eax, dword [edi]
xor edx, edx
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
or eax, 0x10000
push eax
push ecx
mov eax, esp
mov dword [ecx], esi
lea edx, [esp + 0x54]
mov dword [eax], edx
mov eax, dword [ebx + 4]
mov dword [esp + 0x50], esp
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0041bb50
mov esi, dword [esp + 0x14]
test esi, esi
je 0x41b2e2
cmp dword [esp + 0x20], 0
je 0x41b293
mov edi, dword [edi]
test edi, edi
je 0x41b293
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.0041c1c0
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41b36d
cmp word [esp + 0x2c], 0
jne 0x41b2c2
xor eax, eax
jmp 0x41b2c6
mov eax, dword [esp + 0x1c]
push 0x13
push 0
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x1c], esi
jmp 0x41b2eb
call fcn.0040e870
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41b326
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x41b326
test dx, dx
je 0x41b326
mov ecx, dword [esp + 0x1c]
push 2
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x20]
mov eax, edi
call fcn.00411310
mov edx, dword [esp + 0x2c]
inc edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
cmp dx, word [esp + 0x3c]
jb 0x41b0f0
jmp 0x41b397
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0x8007000e
test eax, eax
je 0x41b397
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x41b397
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41b397
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x41b397
call fcn.0040e870
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4