Function at 0x4a5420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50cece
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x53bbf0]
xor eax, esp
mov dword [esp + 0x4c8], eax
push ebx
push esi
push edi
mov eax, dword [0x53bbf0]
xor eax, esp
push eax
lea eax, [esp + 0x4e0]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
mov ebx, ecx
mov dword [esp + 0x18], ebx
call fcn.0049b650
xor esi, esi
cmp edi, esi
mov dword [esp + 0x4e8], esi
mov dword [ebx], vtable.CompressedFramedSurface.0
mov dword [ebx + 0x174], esi
je 0x4a5496
push edi
call fcn.0040284c
add esp, 4
mov dword [ebx + 0x174], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0x60
lea edx, [ebx + 0x186]
push esi
push edx
mov dword [ebx + 0x15e], esi
mov dword [ebx + 0x168], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0x16c], eax
mov dword [ebx + 0x170], ecx
mov word [ebx + 0x162], 0x100
mov dword [ebx + 0x15a], esi
mov dword [ebx + 0x164], esi
mov dword [ebx + 0x17c], esi
mov dword [ebx + 0x178], esi
mov dword [ebx + 0x180], esi
mov word [ebx + 0x184], si
call fcn.004c14b0
add esp, 0xc
cmp dword [ebp + 0x14], esi
je 0x4a5512
push 0x400
call fcn.004c2308
add esp, 4
mov dword [ebx + 0x15e], eax
mov eax, dword [ebx + 0x174]
cmp eax, esi
je 0x4a555e
push esi
push eax
call fcn.004c4420
add esp, 8
test eax, eax
jne 0x4a555e
mov eax, dword [ebx + 0x174]
push 0x51db6c
push eax
call fcn.004c20fd
mov edi, eax
add esp, 8
cmp edi, esi
je 0x4a5761
push edi
mov ecx, ebx
call fcn.004a49d0
push edi
call fcn.004c1af7
add esp, 4
jmp 0x4a5761
mov eax, dword [ebx + 0x16c]
cmp eax, esi
je 0x4a5768
movzx ecx, word [ebx + 0x170]
push 0x51db70
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, esi
je 0x4a5768
mov edx, dword [ebx + 0x16c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x4a5768
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
je 0x4a5768
movzx ecx, word [eax]
add eax, 2
cmp cx, 2
mov esi, eax
jg 0x4a55e7
mov ecx, 7
lea edi, [esp + 0x41c]
rep movsd dword es:[edi], dword [esi]
add eax, 0x1e
mov dword [esp + 0x14], eax
lea eax, [esp + 0x41c]
push eax
mov ecx, ebx
movsw word es:[edi], word [esi]
call fcn.004a3460
mov eax, dword [esp + 0x14]
jmp 0x4a565e
cmp cx, 3
jg 0x4a5617
mov ecx, 0xe
lea edi, [esp + 0x41c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x41c]
add eax, 0x38
push ecx
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.004a3500
mov eax, dword [esp + 0x14]
jmp 0x4a565e
cmp cx, 4
jg 0x4a564a
mov ecx, 0x1f
lea edi, [esp + 0x454]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [esp + 0x454]
add eax, 0x7f
push edx
mov ecx, ebx
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], eax
call fcn.004a3600
mov eax, dword [esp + 0x14]
jmp 0x4a565e
lea edi, [ebx + 0xa4]
mov ecx, 0x2d
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
add eax, 0xb6
mov esi, eax
add eax, 0x400
mov dword [esp + 0x14], eax
movzx eax, word [ebx + 0xb8]
test ax, ax
mov ecx, 0x100
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
jle 0x4a56b2
movsx eax, ax
push eax
call fcn.004c2308
movsx ecx, word [ebx + 0xb8]
mov esi, dword [esp + 0x18]
push ecx
push esi
push eax
mov dword [ebx + 0x15a], eax
call fcn.004c1720
movsx edx, word [ebx + 0xb8]
add esp, 0x10
add esi, edx
mov dword [esp + 0x14], esi
movsx eax, word [ebx + 0xa8]
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c538d
movsx ecx, word [ebx + 0xa8]
mov esi, dword [esp + 0x18]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, ecx
push ecx
push esi
push eax
mov dword [ebx + 0x168], eax
call fcn.004c1720
movsx eax, word [ebx + 0xa8]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 0xa4]
push eax
lea esi, [esi + edx*4]
call fcn.004c2308
mov ecx, dword [ebx + 0xa4]
push ecx
push esi
push eax
mov dword [ebx + 0x164], eax
call fcn.004c1720
mov dx, 0x100
sub dx, word [ebx + 0xb6]
lea eax, [esp + 0x3c]
sub dx, word [ebx + 0xb4]
push 0
push eax
mov word [ebx + 0x162], dx
call fcn.004a4770
add esp, 0x28
cmp dword [ebp + 0x14], 0
mov dword [ebx + 0x178], eax
je 0x4a5761
mov edi, dword [ebx + 0x15e]
mov ecx, 0x100
lea esi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.004a0e40
mov eax, ebx
mov ecx, dword [esp + 0x4e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c8]
xor ecx, esp
call fcn.004c118f
mov esp, ebp
pop ebp
ret 0x10