Function at 0x4a70cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xb8
mov eax, 0x520e49
call fcn.004f21c7
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x85], 0
mov dword [ebp - 0x98], ebx
push 0x54a2dc
push 0x1f6
mov dword [ebp - 4], ebx
push dword [0x582d08]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x94], esi
cmp esi, ebx
je 0x4a742e
push esi
push dword [0x582d08]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x98], eax
cmp eax, ebx
je 0x4a741a
push esi
push dword [0x582d08]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
inc esi
cmp esi, 0xf4240
jle 0x4a7165
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
jmp 0x4a7434
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e6ab6
mov edi, eax
pop ecx
mov dword [ebp - 0xa4], edi
cmp edi, ebx
je 0x4a741a
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.004e7380
add esp, 0xc
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_LockResource]
dec esi
push esi
push eax
push edi
call fcn.004ea300
mov eax, 0xfeff
add esp, 0xc
mov esi, edi
cmp word [edi], ax
jne 0x4a71c1
lea esi, [edi + 2]
lea eax, [ebp - 0xc4]
push eax
call fcn.004555e3
push esi
mov edx, 0x540064
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.004a783a
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 0x4a73d7
mov ebx, 0x54a2cc
mov edi, 0x5410fc
push dword [ebp - 0x8c]
lea esi, [ebp - 0xc4]
call fcn.0041822a
cmp dword [eax + 0x18], 8
jb 0x4a7243
mov eax, dword [eax + 4]
jmp 0x4a7246
add eax, 4
push eax
lea eax, [ebp - 0x4c]
call fcn.0040441b
mov esi, 0x54aa40
push esi
mov byte [ebp - 4], 3
call fcn.004e73fa
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp - 0x4c]
call fcn.00418e9d
push ebx
mov dword [ebp - 0xac], eax
call fcn.004e73fa
pop ecx
push eax
push ebx
xor eax, eax
lea ecx, [ebp - 0x4c]
call fcn.00418e9d
push edi
mov esi, eax
call fcn.004e73fa
pop ecx
push eax
push edi
xor eax, eax
lea ecx, [ebp - 0x4c]
call fcn.00418e9d
xor ecx, ecx
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xac], ecx
jne 0x4a731e
cmp esi, 0xffffffff
je 0x4a731e
dec esi
push esi
push 1
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp - 0x68]
call fcn.004174c2
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x30]
push ecx
mov byte [ebp - 4], 4
call fcn.00404bcd
push 0
push 1
mov byte [ebp - 4], 3
call fcn.00404e82
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4a72e8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00405747
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x90]
mov byte [ebp - 4], 5
call fcn.004249ca
mov eax, dword [ebp - 0x9c]
add eax, 0xfffffff0
call fcn.0040557a
jmp 0x4a73a4
cmp eax, 0xffffffff
je 0x4a73a8
push eax
push ecx
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp - 0x68]
call fcn.004174c2
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.004174c2
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6c], 8
mov edx, dword [ebp - 0x80]
jae 0x4a7363
lea edx, [ebp - 0x80]
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
jae 0x4a736f
lea ecx, [ebp - 0x64]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4a737b
lea eax, [ebp - 0x2c]
push edx
push ecx
push eax
push dword [ebp - 0x90]
call fcn.004a743c
push 0
push 1
lea esi, [ebp - 0x84]
call fcn.00404e82
push 0
push 1
lea esi, [ebp - 0x68]
call fcn.00404e82
push 0
jmp 0x4a73a9
push ecx
push 1
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00404e82
inc dword [ebp - 0x8c]
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0xa0]
jb 0x4a7227
mov edi, dword [ebp - 0xa4]
xor ebx, ebx
push edi
call fcn.004e85e3
mov eax, dword [ebp - 0x90]
pop ecx
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
sar ecx, 2
test ecx, ecx
jbe 0x4a73f8
mov byte [ebp - 0x85], 1
push ebx
push 1
lea esi, [ebp - 0x30]
call fcn.00404e82
lea esi, [ebp - 0xc4]
call fcn.0043f078
push dword [ebp - 0xc4]
call fcn.004e7360
pop ecx
cmp dword [ebp - 0x98], ebx
je 0x4a742e
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 0x85]
call fcn.004f224a
ret 4