Function at 0x4f5370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b89d
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.00425790
mov eax, dword [0x5472f8]
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 0x532778
push 0x83
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4f576c
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f576c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4f576c
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, esi
mov edi, eax
call fcn.004bbb00
test eax, eax
je 0x4f5418
mov eax, dword [esi + 0x14]
inc eax
push eax
call fcn.00424b6b
mov ebx, eax
add esp, 4
mov edx, esi
mov dword [ebp - 0x1020], ebx
mov ecx, ebx
call fcn.004bbb40
mov edi, eax
jmp 0x4f5434
lea eax, [edi + 1]
push eax
call fcn.00424b6b
push edi
mov ebx, eax
push esi
push ebx
mov dword [ebp - 0x1020], ebx
call fcn.0042fea0
add esp, 0x10
mov byte [ebx + edi], 0
call fcn.004f5120
push 0x10
call fcn.00424b2d
push 0x18
mov dword [0x5a9e50], eax
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00424b2d
add esp, 8
mov dword [ebp - 0x1024], eax
mov dword [ebp - 4], 0
mov ecx, eax
push 0
call fcn.004a5e70
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [0x5a9e50]
mov esi, dword [ebp - 0x1020]
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0
call fcn.004f1f30
add esp, 4
mov edx, eax
cmp byte [esi], 0
mov edi, esi
mov dword [ebp - 0x1018], edx
je 0x4f5755
nop
mov al, byte [edi]
cmp al, 0x20
je 0x4f54c2
cmp al, 9
je 0x4f54c2
cmp al, 0xd
je 0x4f54c2
cmp al, 0xa
jne 0x4f54c5
inc edi
jmp 0x4f54b0
mov cl, byte [edi]
test al, al
je 0x4f574f
cmp al, 0x2f
jne 0x4f5517
cmp byte [edi + 1], al
jne 0x4f5517
mov al, byte [edi + 2]
add edi, 2
cmp al, 0xd
je 0x4f5746
cmp al, 0xa
je 0x4f5746
test al, al
je 0x4f574f
push edx
push edi
xor edx, edx
xor ecx, ecx
call fcn.004f1c40
mov edx, dword [ebp - 0x1018]
add edi, eax
add esp, 8
mov al, byte [edi]
cmp al, 0xd
jne 0x4f54e6
jmp 0x4f5740
mov dword [ebp - 0x101c], 0
cmp al, 0x40
jne 0x4f5533
mov cl, byte [edi + 1]
inc edi
mov dword [ebp - 0x101c], 1
mov dword [ebp - 0x1024], edi
cmp cl, 0x20
je 0x4f556d
nop
cmp cl, 9
je 0x4f556d
cmp cl, 0x3d
je 0x4f556d
cmp cl, 0x2c
je 0x4f556d
push edx
push edi
xor edx, edx
xor ecx, ecx
call fcn.004f1c40
mov cl, byte [edi + eax]
add edi, eax
mov edx, dword [ebp - 0x1018]
add esp, 8
cmp cl, 0x20
jne 0x4f5540
mov byte [edi], 0
mov al, byte [edi + 1]
inc edi
cmp al, 0x20
je 0x4f5570
cmp al, 9
je 0x4f5570
cmp al, 0x3d
je 0x4f5570
cmp al, 0x2c
je 0x4f5570
mov dword [ebp - 0x1014], edi
mov esi, edi
cmp al, 0xd
je 0x4f55ba
cmp al, 0xa
je 0x4f55ba
test al, al
je 0x4f55c8
push edx
push edi
xor edx, edx
xor ecx, ecx
call fcn.004f1c40
mov edx, dword [ebp - 0x1018]
add edi, eax
add esp, 8
mov dword [ebp - 0x1014], edi
mov al, byte [edi]
cmp al, 0xd
jne 0x4f5590
test al, al
je 0x4f55c8
mov byte [edi], 0
inc edi
mov dword [ebp - 0x1014], edi
cmp dword [ebp - 0x101c], 0
je 0x4f5722
mov ebx, dword [ebp - 0x1024]
push ebx
call fcn.004f20a0
push str.languageid
push ebx
call fcn.004f2060
add esp, 0xc
test eax, eax
jne 0x4f5732
xor ebx, ebx
mov dword [ebp - 0x101c], ebx
cmp byte [esi], bl
je 0x4f565f
mov edi, ebx
push 0xffffffffffffffff
mov edx, 0x2c
mov ecx, esi
call fcn.004f1a60
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4f561f
mov byte [ebx], 0
push 0x10
push 0
push esi
call fcn.0043786d
mov dword [ebp + edi*4 - 0x1010], eax
add esp, 0xc
inc edi
test ebx, ebx
je 0x4f564d
lea esi, [ebx + 1]
nop dword [eax + eax]
mov al, byte [esi]
cmp al, 0x20
je 0x4f564a
cmp al, 9
jne 0x4f5605
inc esi
jmp 0x4f5640
mov dword [ebp - 0x101c], edi
mov edi, dword [ebp - 0x1014]
mov ebx, dword [ebp - 0x101c]
mov esi, dword [0x5a9e50]
push 0
push ecx
push 0
push ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x1014], esi
call fcn.004a5bd0
test eax, eax
jne 0x4f56d1
push 0x10
call fcn.00424b2d
mov esi, eax
push 0x18
mov dword [ebp - 0x1014], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00424b2d
add esp, 8
mov dword [ebp - 0x1028], eax
mov dword [ebp - 4], 1
mov ecx, eax
push 0
call fcn.004a5e70
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 8], eax
mov eax, dword [0x5a9e50]
mov dword [esi + 0xc], eax
mov dword [0x5a9e50], esi
cmp ebx, 1
jb 0x4f573a
jne 0x4f56e1
cmp dword [ebp - 0x1010], 0
je 0x4f573a
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.00424b6b
mov esi, dword [0x5a9e50]
mov ecx, eax
lea eax, [ebx*4]
push eax
lea eax, [ebp - 0x1010]
push eax
push ecx
mov dword [esi + 4], ecx
call fcn.0042fea0
add esp, 0x10
mov ebx, esi
jmp 0x4f5740
push ecx
mov ecx, dword [ebx + 8]
push esi
push dword [ebp - 0x1024]
call fcn.004a5d30
mov ebx, dword [0x5a9e50]
jmp 0x4f5740
mov ebx, dword [ebp - 0x1014]
mov edx, dword [ebp - 0x1018]
cmp byte [edi], 0
jne 0x4f54b0
mov esi, dword [ebp - 0x1020]
push esi
call fcn.00424b28
add esp, 4
xor ecx, ecx
call fcn.004f5340
mov eax, 1
jmp 0x4f576e
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.00424b17
mov esp, ebp
pop ebp
ret