Function at 0x4214eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x484e7f
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4c2660]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x4c2660]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
movzx edi, word [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xf0
push edi
push dword [0x4c6c8c]
mov dword [esp + 0x3c], ecx
call esi
and dword [esp + 0x34], 0
and dword [esp + 0x14], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42156a
push eax
push dword [0x4c6c8c]
call ebx
test eax, eax
je 0x42156a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x34], eax
push 5
push edi
push dword [0x4c6c8c]
call esi
test eax, eax
je 0x4218c3
push eax
push dword [0x4c6c8c]
call ebx
test eax, eax
je 0x4218ba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4218ba
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 + 0x24], ebx
cmp si, cx
je 0x4215bf
lea edx, [eax + 8]
movzx esi, word [edx]
mov ecx, eax
mov dword [esp + 0x38], esi
call fcn.004043b4
mov ebx, eax
mov eax, dword [esp + 0x30]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [esp + 0x28], 0
mov dword [esp + 0x2c], eax
xor eax, eax
cmp ax, si
jae 0x4218c3
cmp dword [esp + 0x24], 0
je 0x4215fe
mov edi, dword [ebx + 0x14]
jmp 0x421602
movzx edi, word [ebx + 0x10]
xor ecx, ecx
lea eax, [ebx + 0x18]
cmp dword [esp + 0x24], ecx
jne 0x421610
lea eax, [ebx + 0x12]
cmp word [eax], 0x7b
jne 0x421840
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
cmp eax, ecx
je 0x421645
movzx edx, word [eax]
mov ecx, dword [eax + 4]
add eax, 2
movzx esi, word [eax]
mov dword [esp + 0x20], eax
add eax, 6
cmp edx, edi
je 0x4216e6
add eax, ecx
jne 0x421626
xor esi, esi
and dword [esp + 0x18], 0
and dword [esp + 0x60], 0
test esi, esi
je 0x42169b
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x421891
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x42187b
push esi
push dword [esp + 0x20]
push esi
push eax
call fcn.004011d2
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x18]
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 + 0x60], 1
mov ecx, dword [esp + 0x18]
push eax
call fcn.004045e4
pop ecx
mov dword [esp + 0x14], eax
test eax, eax
js 0x421821
and dword [esp + 0x20], 0
call fcn.00407a6b
mov esi, dword [esp + 0x24]
lea eax, [ebx + 0x18]
test esi, esi
jne 0x4216d8
lea eax, [ebx + 0x12]
mov dword [esp + 0x14], eax
test esi, esi
je 0x421704
movzx eax, word [ebx + 0xc]
jmp 0x421708
mov eax, 0x378
cmp si, ax
je 0x421645
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
lea esi, [ecx + 6]
jmp 0x421647
movzx eax, word [ebx + 8]
movsx edx, ax
mov dword [esp + 0x40], edx
test esi, esi
je 0x421719
movzx eax, word [ebx + 0xe]
jmp 0x42171d
movzx eax, word [ebx + 0xa]
movsx ecx, ax
mov dword [esp + 0x44], ecx
test esi, esi
je 0x42172e
movzx eax, word [ebx + 0x10]
jmp 0x421732
movzx eax, word [ebx + 0xc]
cwde
add eax, edx
mov dword [esp + 0x48], eax
test esi, esi
je 0x421743
movzx eax, word [ebx + 0x12]
jmp 0x421747
movzx eax, word [ebx + 0xe]
mov edi, dword [esp + 0x30]
cwde
add eax, ecx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
test esi, esi
je 0x421769
mov edx, dword [ebx + 0x14]
jmp 0x42176d
movzx edx, word [ebx + 0x10]
test esi, esi
je 0x421776
mov esi, dword [ebx + 4]
jmp 0x421778
xor esi, esi
cmp dword [esp + 0x24], 0
je 0x421784
mov eax, dword [ebx + 8]
jmp 0x421786
mov eax, dword [ebx]
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
or eax, 0x10000
push eax
push ecx
mov dword [ecx], edx
mov eax, esp
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], esp
mov dword [eax], ecx
push dword [edi + 4]
lea eax, [esp + 0x34]
push eax
call fcn.00419c16
cmp dword [esp + 0x20], 0
je 0x421818
cmp dword [esp + 0x24], 0
je 0x4217cf
mov eax, dword [ebx]
test eax, eax
je 0x4217cf
push eax
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [esp + 0x1c]
lea edi, [esp + 0x24]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00419c64
xor esi, esi
mov dword [esp + 0x14], eax
cmp eax, esi
jl 0x42189b
cmp word [esp + 0x28], si
jne 0x4217fd
mov dword [esp + 0x2c], esi
push 0x13
push esi
push esi
push esi
push esi
push dword [esp + 0x40]
mov esi, dword [esp + 0x38]
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x2c], esi
jmp 0x421821
call fcn.0040121a
mov dword [esp + 0x14], eax
push dword [esp + 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x421857
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x421857
cmp word [esp + 0x28], cx
je 0x421857
push 2
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x2c], eax
push dword [esp + 0x24]
mov eax, ebx
call fcn.00404433
inc dword [esp + 0x2c]
mov ebx, eax
mov ax, word [esp + 0x2c]
pop ecx
cmp ax, word [esp + 0x38]
jb 0x4215f2
jmp 0x4218c3
call fcn.0040121a
mov dword [esp + 0x14], eax
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
jmp 0x4218b0
mov dword [esp + 0x14], 0x8007000e
jmp 0x421884
push dword [esp + 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x4218c3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4218c3
call fcn.0040121a
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 ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00465f42
mov esp, ebp
pop ebp
ret 4