Function at 0x4f4560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50aa7d
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.004256f0
mov eax, dword [0x5462f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x531660
push 0x83
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4f495c
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f495c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4f495c
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, esi
mov edi, eax
call fcn.004bb600
test eax, eax
je 0x4f4608
mov eax, dword [esi + 0x14]
inc eax
push eax
call fcn.00424adb
mov ebx, eax
add esp, 4
mov edx, esi
mov dword [ebp - 0x1020], ebx
mov ecx, ebx
call fcn.004bb640
mov edi, eax
jmp 0x4f4624
lea eax, [edi + 1]
push eax
call fcn.00424adb
push edi
mov ebx, eax
push esi
push ebx
mov dword [ebp - 0x1020], ebx
call fcn.0042fe00
add esp, 0x10
mov byte [ebx + edi], 0
call fcn.004f4310
push 0x10
call fcn.00424a9d
push 0x18
mov dword [0x5a8e48], eax
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00424a9d
add esp, 8
mov dword [ebp - 0x1024], eax
mov dword [ebp - 4], 0
mov ecx, eax
push 0
call fcn.004a5980
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [0x5a8e48]
mov esi, dword [ebp - 0x1020]
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0
call fcn.004f1200
add esp, 4
mov edx, eax
cmp byte [esi], 0
mov edi, esi
mov dword [ebp - 0x1018], edx
je 0x4f4945
nop
mov al, byte [edi]
cmp al, 0x20
je 0x4f46b2
cmp al, 9
je 0x4f46b2
cmp al, 0xd
je 0x4f46b2
cmp al, 0xa
jne 0x4f46b5
inc edi
jmp 0x4f46a0
mov cl, byte [edi]
test al, al
je 0x4f493f
cmp al, 0x2f
jne 0x4f4707
cmp byte [edi + 1], al
jne 0x4f4707
mov al, byte [edi + 2]
add edi, 2
cmp al, 0xd
je 0x4f4936
cmp al, 0xa
je 0x4f4936
test al, al
je 0x4f493f
push edx
push edi
xor edx, edx
xor ecx, ecx
call fcn.004f0f10
mov edx, dword [ebp - 0x1018]
add edi, eax
add esp, 8
mov al, byte [edi]
cmp al, 0xd
jne 0x4f46d6
jmp 0x4f4930
mov dword [ebp - 0x101c], 0
cmp al, 0x40
jne 0x4f4723
mov cl, byte [edi + 1]
inc edi
mov dword [ebp - 0x101c], 1
mov dword [ebp - 0x1024], edi
cmp cl, 0x20
je 0x4f475d
nop
cmp cl, 9
je 0x4f475d
cmp cl, 0x3d
je 0x4f475d
cmp cl, 0x2c
je 0x4f475d
push edx
push edi
xor edx, edx
xor ecx, ecx
call fcn.004f0f10
mov cl, byte [edi + eax]
add edi, eax
mov edx, dword [ebp - 0x1018]
add esp, 8
cmp cl, 0x20
jne 0x4f4730
mov byte [edi], 0
mov al, byte [edi + 1]
inc edi
cmp al, 0x20
je 0x4f4760
cmp al, 9
je 0x4f4760
cmp al, 0x3d
je 0x4f4760
cmp al, 0x2c
je 0x4f4760
mov dword [ebp - 0x1014], edi
mov esi, edi
cmp al, 0xd
je 0x4f47aa
cmp al, 0xa
je 0x4f47aa
test al, al
je 0x4f47b8
push edx
push edi
xor edx, edx
xor ecx, ecx
call fcn.004f0f10
mov edx, dword [ebp - 0x1018]
add edi, eax
add esp, 8
mov dword [ebp - 0x1014], edi
mov al, byte [edi]
cmp al, 0xd
jne 0x4f4780
test al, al
je 0x4f47b8
mov byte [edi], 0
inc edi
mov dword [ebp - 0x1014], edi
cmp dword [ebp - 0x101c], 0
je 0x4f4912
mov ebx, dword [ebp - 0x1024]
push ebx
call fcn.004f1370
push str.languageid
push ebx
call fcn.004f1330
add esp, 0xc
test eax, eax
jne 0x4f4922
xor ebx, ebx
mov dword [ebp - 0x101c], ebx
cmp byte [esi], bl
je 0x4f484f
mov edi, ebx
push 0xffffffffffffffff
mov edx, 0x2c
mov ecx, esi
call fcn.004f0d30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4f480f
mov byte [ebx], 0
push 0x10
push 0
push esi
call fcn.004377dd
mov dword [ebp + edi*4 - 0x1010], eax
add esp, 0xc
inc edi
test ebx, ebx
je 0x4f483d
lea esi, [ebx + 1]
nop dword [eax + eax]
mov al, byte [esi]
cmp al, 0x20
je 0x4f483a
cmp al, 9
jne 0x4f47f5
inc esi
jmp 0x4f4830
mov dword [ebp - 0x101c], edi
mov edi, dword [ebp - 0x1014]
mov ebx, dword [ebp - 0x101c]
mov esi, dword [0x5a8e48]
push 0
push ecx
push 0
push ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x1014], esi
call fcn.004a56e0
test eax, eax
jne 0x4f48c1
push 0x10
call fcn.00424a9d
mov esi, eax
push 0x18
mov dword [ebp - 0x1014], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00424a9d
add esp, 8
mov dword [ebp - 0x1028], eax
mov dword [ebp - 4], 1
mov ecx, eax
push 0
call fcn.004a5980
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 8], eax
mov eax, dword [0x5a8e48]
mov dword [esi + 0xc], eax
mov dword [0x5a8e48], esi
cmp ebx, 1
jb 0x4f492a
jne 0x4f48d1
cmp dword [ebp - 0x1010], 0
je 0x4f492a
xor ecx, ecx
mov dword [esi], ebx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00424adb
mov esi, dword [0x5a8e48]
mov ecx, eax
lea eax, [ebx*4]
push eax
lea eax, [ebp - 0x1010]
push eax
push ecx
mov dword [esi + 4], ecx
call fcn.0042fe00
add esp, 0x10
mov ebx, esi
jmp 0x4f4930
push ecx
mov ecx, dword [ebx + 8]
push esi
push dword [ebp - 0x1024]
call fcn.004a5840
mov ebx, dword [0x5a8e48]
jmp 0x4f4930
mov ebx, dword [ebp - 0x1014]
mov edx, dword [ebp - 0x1018]
cmp byte [edi], 0
jne 0x4f46a0
mov esi, dword [ebp - 0x1020]
push esi
call fcn.00424a98
add esp, 4
xor ecx, ecx
call fcn.004f4530
mov eax, 1
jmp 0x4f495e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424a87
mov esp, ebp
pop ebp
ret