Function at 0x46b218
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
or word [eax + 0x54], 0x80
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x46b451
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, dword [ebp + 8]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00463464
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_IntersectClipRect
xor esi, esi
xor ebx, ebx
push 0xffffffffffffffec
mov eax, dword [ebp - 4]
call fcn.0046d87c
push eax
call sub.KERNEL32.DLL_GetACP
test ah, 2
je 0x46b298
mov ebx, 0xa
mov esi, 0x200f
jmp 0x46b2b9
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
call fcn.0046d87c
push eax
call sub.KERNEL32.DLL_GetACP
test eax, 0x800000
je 0x46b2b9
mov ebx, 3
mov esi, 0xa00f
cmp ebx, 0xa
jne 0x46b37a
call fcn.00474d38
call fcn.00474e44
test al, al
je 0x46b37a
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
je 0x46b2ed
mov eax, dword [ebp - 4]
call fcn.00474ccc
test al, al
jne 0x46b37a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_LockResource
mov eax, dword [ebp - 4]
test byte [eax + 0x52], 2
je 0x46b31e
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0046b16c
jmp 0x46b34f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
or eax, dword [0x46b46c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0046b16c
mov eax, dword [ebp - 4]
mov edx, dword [0x46b46c]
not edx
and edx, dword [eax + 0x50]
mov eax, dword [ebp - 4]
mov dword [eax + 0x50], edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00463464
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_IntersectClipRect
jmp 0x46b3d1
test esi, esi
je 0x46b3d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_LockResource
push esi
push ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00409104
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00463464
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_IntersectClipRect
push 0
mov ecx, dword [ebp - 8]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.0046628c
push 0
mov ecx, dword [ebp - 8]
mov edx, 0xf
mov eax, dword [ebp - 4]
call fcn.0046628c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1d8]
test eax, eax
je 0x46b436
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x46b436
inc ebx
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1d8]
mov edx, esi
call fcn.00420f3c
cmp byte [eax + 0x57], 0
je 0x46b432
mov edx, dword [eax + 0x44]
push edx
mov ecx, dword [eax + 0x40]
mov edx, dword [ebp - 8]
call fcn.0046b218
inc esi
dec ebx
jne 0x46b40d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b458
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
ret