Function at 0x4afdd5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xb8
mov eax, 0x52c029
call fcn.004fc737
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x85], 0
mov dword [ebp - 0x98], ebx
push 0x555fa4
push 0x1f6
mov dword [ebp - 4], ebx
push dword [0x590dc8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x94], esi
cmp esi, ebx
je 0x4b0134
push esi
push dword [0x590dc8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x98], eax
cmp eax, ebx
je 0x4b0120
push esi
push dword [0x590dc8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
inc esi
cmp esi, 0xf4240
jle 0x4afe6b
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
jmp 0x4b013a
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f0fe5
mov edi, eax
pop ecx
mov dword [ebp - 0xa4], edi
cmp edi, ebx
je 0x4b0120
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.004f18b0
add esp, 0xc
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_LockResource]
dec esi
push esi
push eax
push edi
call fcn.004f4830
mov eax, 0xfeff
add esp, 0xc
mov esi, edi
cmp word [edi], ax
jne 0x4afec7
lea esi, [edi + 2]
lea eax, [ebp - 0xc4]
push eax
call fcn.0046b0ed
push esi
mov edx, 0x54ba94
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.004b0540
xor eax, eax
pop ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0xb8]
push 0x1c
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0xa0], eax
cmp eax, ebx
jbe 0x4b00dd
mov ebx, 0x555f94
mov edi, 0x54cb24
push dword [ebp - 0x8c]
lea esi, [ebp - 0xc4]
call fcn.00431a62
cmp dword [eax + 0x18], 8
jb 0x4aff49
mov eax, dword [eax + 4]
jmp 0x4aff4c
add eax, 4
push eax
lea eax, [ebp - 0x4c]
call fcn.004043d1
mov esi, 0x556708
push esi
mov byte [ebp - 4], 3
call fcn.004f192a
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp - 0x4c]
call fcn.0041ce1c
push ebx
mov dword [ebp - 0xac], eax
call fcn.004f192a
pop ecx
push eax
push ebx
xor eax, eax
lea ecx, [ebp - 0x4c]
call fcn.0041ce1c
push edi
mov esi, eax
call fcn.004f192a
pop ecx
push eax
push edi
xor eax, eax
lea ecx, [ebp - 0x4c]
call fcn.0041ce1c
xor ecx, ecx
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xac], ecx
jne 0x4b0024
cmp esi, 0xffffffff
je 0x4b0024
dec esi
push esi
push 1
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp - 0x68]
call fcn.0041b0b2
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x30]
push ecx
mov byte [ebp - 4], 4
call fcn.00404b74
push 0
push 1
mov byte [ebp - 4], 3
call fcn.00404e29
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4affee
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.004056ee
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x90]
mov byte [ebp - 4], 5
call fcn.00429e6d
mov eax, dword [ebp - 0x9c]
add eax, 0xfffffff0
call fcn.00405521
jmp 0x4b00aa
cmp eax, 0xffffffff
je 0x4b00ae
push eax
push ecx
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp - 0x68]
call fcn.0041b0b2
mov eax, dword [ebp - 0xa8]
mov byte [ebp - 4], 6
push dword [ebp - 0x38]
inc eax
push eax
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp - 0x84]
call fcn.0041b0b2
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6c], 8
mov edx, dword [ebp - 0x80]
jae 0x4b0069
lea edx, [ebp - 0x80]
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
jae 0x4b0075
lea ecx, [ebp - 0x64]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4b0081
lea eax, [ebp - 0x2c]
push edx
push ecx
push eax
push dword [ebp - 0x90]
call fcn.004b0142
push 0
push 1
lea esi, [ebp - 0x84]
call fcn.00404e29
push 0
push 1
lea esi, [ebp - 0x68]
call fcn.00404e29
push 0
jmp 0x4b00af
push ecx
push 1
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00404e29
inc dword [ebp - 0x8c]
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0xa0]
jb 0x4aff2d
mov edi, dword [ebp - 0xa4]
xor ebx, ebx
push edi
call fcn.004f2b13
mov eax, dword [ebp - 0x90]
pop ecx
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
sar ecx, 2
test ecx, ecx
jbe 0x4b00fe
mov byte [ebp - 0x85], 1
push ebx
push 1
lea esi, [ebp - 0x30]
call fcn.00404e29
lea esi, [ebp - 0xc4]
call fcn.0044419e
push dword [ebp - 0xc4]
call fcn.004f1890
pop ecx
cmp dword [ebp - 0x98], ebx
je 0x4b0134
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 0x85]
call fcn.004fc7ba
ret 4